Skip to content

Commit 2548387

Browse files
committed
Use better icons
1 parent 28c4538 commit 2548387

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

examples/Demo/FluentUI.Demo.Client/Layout/DemoMainLayout.razor

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@
3030
Title="Switch to Light/Dark theme" />
3131

3232
@* Direction *@
33-
<FluentButton IconStart="@(new Icons.Regular.Size20.ArrowBidirectionalLeftRight().WithColor("var(--colorNeutralForegroundOnBrand)"))"
33+
<FluentButton IconOnly="true"
34+
Title="Switch to LTR/RTL direction"
3435
OnClick="@SwitchDirAsync"
35-
Appearance="ButtonAppearance.Transparent"
36-
Title="Switch direction" />
36+
Appearance="ButtonAppearance.Transparent">
37+
<FluentIcon Class="hidden-if-ltr"
38+
Value="@(new Icons.Regular.Size20.TextDirectionHorizontalRtl().WithColor(SystemColors.Neutral.ForegroundOnBrand))" />
39+
<FluentIcon Class="hidden-if-rtl"
40+
Value="@(new Icons.Regular.Size20.TextDirectionHorizontalLtr().WithColor(SystemColors.Neutral.ForegroundOnBrand))" />
41+
</FluentButton>
3742

3843
@* Reboot *@
3944
<FluentButton IconStart="@(new Icons.Regular.Size20.DrawText().WithColor("var(--colorNeutralForegroundOnBrand)"))"

examples/Demo/FluentUI.Demo.Client/wwwroot/app.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
border: 1px dashed var(--colorBrandForeground1);
55
padding: 5px;
66
}
7+
[dir=rtl] .hidden-if-ltr {
8+
display: none;
9+
}
10+
11+
[dir=ltr] .hidden-if-rtl {
12+
display: none;
13+
}
714

815
/* Blazor Styles */
916

0 commit comments

Comments
 (0)