Skip to content

Commit 5b21884

Browse files
authored
SwitchM3: Fix Nullable Thumb (#259)
* SwitchM3 Fix Nullable Thumb * Add ComboBox link on NavLink
1 parent d41e461 commit 5b21884

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CodeBeam.MudBlazor.Extensions/Components/SwitchM3/MudSwitchM3.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<span tabindex="0" class="@SwitchClassname">
88
<span class="mud-switch-button-m3">
99
<input tabindex="-1" @attributes="UserAttributes" aria-checked="@((BoolValue == true).ToString().ToLower())" aria-readonly="@(Disabled.ToString().ToLower())" type="checkbox" class="mud-switch-input-m3" checked="@BoolValue" @onchange="@OnChange" disabled="@Disabled" @onclick:preventDefault="@ReadOnly" />
10-
<span class="mud-switch-thumb-m3 @(BoolValue == false ? $"mud-switch-thumb-{Color.ToDescriptionString()}-m3" : null) @(string.IsNullOrEmpty(ThumbOffIcon) ? null : "mud-switch-thumb-off-icon-m3") d-flex align-center justify-center">
10+
<span class="mud-switch-thumb-m3 @(BoolValue != true ? $"mud-switch-thumb-{Color.ToDescriptionString()}-m3" : null) @(string.IsNullOrEmpty(ThumbOffIcon) ? null : "mud-switch-thumb-off-icon-m3") d-flex align-center justify-center">
1111
@if (!string.IsNullOrEmpty(ThumbIcon) && BoolValue == true)
1212
{
1313
<MudIcon Color="@Color" Icon="@ThumbIcon" Style="height:16px; width:16px;" />

ComponentViewer.Docs/Shared/MainLayout.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<MudNavLink Href="/mudchipfield">ChipField</MudNavLink>
4343
<MudNavLink Href="/mudcodeinput">CodeInput</MudNavLink>
4444
<MudNavLink Href="/mudcolorprovider">ColorProvider</MudNavLink>
45+
<MudNavLink Href="/mudcombobox">ComboBox</MudNavLink>
4546
<MudNavLink Href="/mudcssmanager">CssManager</MudNavLink>
4647
<MudNavLink Href="/mudcsvmapper">CsvMapper</MudNavLink>
4748
<MudNavLink Href="/muddatewheelpicker">DateWheelPicker</MudNavLink>

0 commit comments

Comments
 (0)