Skip to content

Commit

Permalink
💄 style(Switch): error UI when using Inset and Dense together (#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Jun 27, 2024
1 parent de312ff commit 010eb95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ public class Usage : Masa.Blazor.Docs.Components.Usage
{
protected override ParameterList<bool> GenToggleParameters() => new()
{
{ nameof(MSwitch<bool>.Inset), false },
{ nameof(MSwitch<bool>.Dense), false },
{ nameof(MSwitch<bool>.Flat), false },
{ nameof(MSwitch<bool>.Inset), false }
};

protected override ParameterList<CheckboxParameter> GenCheckboxParameters() => new()
{
{ nameof(MSwitch<bool>.Disabled), new CheckboxParameter("false",true) },
{ nameof(MSwitch<bool>.Loading), new CheckboxParameter("false",true) },
{ nameof(MSwitch<bool>.Dense), new CheckboxParameter("false",true) },
{ nameof(MSwitch<bool>.Flat), new CheckboxParameter("false",true) },
};

protected override ParameterList<SelectParameter> GenSelectParameters() => new()
Expand Down
2 changes: 1 addition & 1 deletion src/Masa.Blazor/wwwroot/css/masa-blazor.css
Original file line number Diff line number Diff line change
Expand Up @@ -28340,7 +28340,7 @@ html.overflow-y-hidden {
height: 12px;
width: 32px;
}
.m-input--switch.m-input--dense:not(.m-input--switch--text) .m-input--switch--inset .m-input--switch__track {
.m-input--switch.m-input--dense.m-input--switch--inset:not(.m-input--switch--text) .m-input--switch__track {
height: 22px;
width: 44px;
top: calc(50% - 12px);
Expand Down
2 changes: 1 addition & 1 deletion src/Masa.Blazor/wwwroot/css/masa-blazor.min.css

Large diffs are not rendered by default.

0 comments on commit 010eb95

Please sign in to comment.