Commit 3fe862e 1 parent 834da06 commit 3fe862e Copy full SHA for 3fe862e
File tree 3 files changed +59
-4
lines changed
demo_markdown/docs/_guide/theme
3 files changed +59
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ let on_customize_dark_theme = move |_| {
55
55
theme . set (Theme :: custom_dark (& brand_colors . get ()));
56
56
};
57
57
let value = RwSignal :: new (0.0 );
58
+ let page = RwSignal :: new (1 );
59
+ let selected_value = RwSignal :: new (String :: from (" apple" ));
58
60
59
61
view! {
60
62
<ConfigProvider theme >
@@ -64,13 +66,42 @@ view! {
64
66
<Button appearance = ButtonAppearance :: Primary on_click = on_customize_light_theme >" Custom Light Theme" </ Button >
65
67
<Button appearance = ButtonAppearance :: Primary on_click = on_customize_dark_theme >" Custom Dark Theme" </ Button >
66
68
</ Space >
67
- <Input / >
68
69
<Link href = " https://react.fluentui.dev/?path=/docs/theme-theme-designer--docs" >
69
70
" You can use this tool to generate brand color palette"
70
71
</ Link >
71
- <Checkbox / >
72
+ <TabList selected_value >
73
+ <Tab value = " apple" >
74
+ " Apple"
75
+ </ Tab >
76
+ <Tab value = " pear" >
77
+ " Pear"
78
+ </ Tab >
79
+ </ TabList >
80
+ <RadioGroup value = selected_value >
81
+ <Radio value = " apple" label = " Apple" / >
82
+ <Radio value = " pear" label = " Pear" / >
83
+ </ RadioGroup >
84
+ <InfoLabel >
85
+ <InfoLabelInfo slot >
86
+ " This is example information for an InfoLabel. "
87
+ </ InfoLabelInfo >
88
+ " Example label"
89
+ </ InfoLabel >
72
90
<Badge appearance = BadgeAppearance :: Filled >" 10+" </ Badge >
91
+ <Checkbox / >
92
+ <Switch / >
93
+ <Tag dismissible = true >" Tag" </ Tag > // TODO make dismissable
94
+ <Input / >
95
+ <Select >
96
+ <option >" Red" </ option >
97
+ <option >" Green" </ option >
98
+ <option >" Blue" </ option >
99
+ </ Select >
100
+ <TimePicker / >
101
+ <DatePicker / >
73
102
<Slider step = 25.0 value / >
103
+ <ProgressBar value / >
104
+ <Pagination page page_count = 10 / >
74
105
</ Card >
75
106
</ ConfigProvider >
76
107
}
Original file line number Diff line number Diff line change 50
50
color : var (--colorCompoundBrandForeground1 );
51
51
}
52
52
53
+ .thaw-radio__input : hover : checked ~ .thaw-radio__indicator {
54
+ color : var (--colorCompoundBrandForeground1Hover );
55
+ }
56
+
57
+ .thaw-radio__input : hover : active ~ .thaw-radio__indicator {
58
+ color : var (--colorCompoundBrandForeground1Pressed );
59
+ }
60
+
53
61
.thaw-radio__indicator ::after {
54
62
position : absolute;
55
63
width : 16px ;
74
82
line-height : var (--lineHeightBase300 );
75
83
font-size : var (--fontSizeBase300 );
76
84
font-family : var (--fontFamilyBase );
85
+ color : var (--colorNeutralForeground3 );
86
+ }
87
+
88
+ .thaw-radio__input : enabled : hover ~ .thaw-radio__label {
89
+ color : var (--colorNeutralForeground2 );
90
+ }
91
+
92
+ .thaw-radio__input : enabled : active ~ .thaw-radio__label {
77
93
color : var (--colorNeutralForeground1 );
78
94
}
79
95
80
- .thaw-radio__input : enabled : not ( : checked ) ~ .thaw-radio__label {
81
- color : var (--colorNeutralForeground3 );
96
+ .thaw-radio__input : enabled : checked ~ .thaw-radio__label {
97
+ color : var (--colorNeutralForeground1 );
82
98
}
83
99
84
100
.thaw-radio__input : enabled ~ .thaw-radio__label {
Original file line number Diff line number Diff line change 45
45
border-color : var (--colorTransparentStroke );
46
46
}
47
47
48
+ .thaw-switch__input : enabled : checked : hover ~ .thaw-switch__indicator {
49
+ background-color : var (--colorCompoundBrandBackgroundHover );
50
+ }
51
+
52
+ .thaw-switch__input : enabled : checked : active ~ .thaw-switch__indicator {
53
+ background-color : var (--colorCompoundBrandBackgroundPressed );
54
+ }
55
+
48
56
.thaw-switch__indicator > svg {
49
57
display : inline;
50
58
line-height : 0 ;
You can’t perform that action at this time.
0 commit comments