File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
examples/Demo/FluentUI.Demo.Client Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 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) " ))"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments