@fluentui/react-slider 9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 → 9.75.2-experimental.css-modules.20261113-ba13c87438.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -11
- package/README.md +3 -3
- package/lib/components/Slider/Slider.module.css +262 -264
- package/lib/components/Slider/useSlider.js +4 -1
- package/lib/components/Slider/useSlider.js.map +1 -1
- package/lib-commonjs/components/Slider/Slider.module.css +262 -264
- package/lib-commonjs/components/Slider/useSlider.cjs +4 -1
- package/lib-commonjs/components/Slider/useSlider.cjs.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-slider
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 13 Nov 2026 20:36:58 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.
|
|
7
|
+
## [9.75.2-experimental.css-modules.20261113-ba13c87438.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.6.8..@fluentui/react-slider_v9.75.
|
|
9
|
+
Fri, 13 Nov 2026 20:36:58 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.6.8..@fluentui/react-slider_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- Release 9.75.
|
|
15
|
-
- Bump @fluentui/react-field to v9.75.
|
|
16
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.
|
|
17
|
-
- Bump @fluentui/react-shared-contexts to v9.75.
|
|
18
|
-
- Bump @fluentui/react-tabster to v9.75.
|
|
19
|
-
- Bump @fluentui/react-theme to v9.75.
|
|
20
|
-
- Bump @fluentui/react-utilities to v9.75.
|
|
14
|
+
- Release 9.75.2-experimental.css-modules.20261113-ba13c87438 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
|
|
15
|
+
- Bump @fluentui/react-field to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-jsx-runtime to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- Bump @fluentui/react-shared-contexts to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
18
|
+
- Bump @fluentui/react-tabster to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
19
|
+
- Bump @fluentui/react-theme to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
|
+
- Bump @fluentui/react-utilities to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
21
21
|
|
|
22
22
|
## [9.6.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.6.8)
|
|
23
23
|
|
package/README.md
CHANGED
|
@@ -34,14 +34,14 @@ Alternatively, run Storybook locally with:
|
|
|
34
34
|
|
|
35
35
|
### Specification
|
|
36
36
|
|
|
37
|
-
See [SPEC.md](./Spec.md).
|
|
37
|
+
See [SPEC.md](./docs/Spec.md).
|
|
38
38
|
|
|
39
39
|
### Migration Guide
|
|
40
40
|
|
|
41
|
-
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Slider implementation.
|
|
41
|
+
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./docs/MIGRATION.md) for guidance on updating to the latest Slider implementation.
|
|
42
42
|
|
|
43
43
|
## Opt-in CSS Modules styles
|
|
44
44
|
|
|
45
45
|
CSS Modules alternatives are available for `Slider`. The default exports and component imports continue to use Griffel.
|
|
46
46
|
|
|
47
|
-
To opt in, configure your bundler to replace each `use<Component>Styles.styles.js` module with its adjacent `use<Component>Styles.styles.css.js` alternative (or `.styles.ts` with `.styles.css.ts` for source builds). Apply the replacement consistently to client and server bundles. The CSS loader must provide a default class-name map and retain the adjacent `.module.css` asset, including CSS from dependencies.
|
|
47
|
+
To opt in, configure your bundler to replace each `use<Component>Styles.styles.js` module with its adjacent `use<Component>Styles.styles.css.js` alternative (or `.styles.ts` with `.styles.css.ts` for source builds). Apply the replacement consistently to client and server bundles. The CSS loader must provide a default class-name map and retain the adjacent `.module.css` asset, including CSS from dependencies. Component rules are unlayered, like Griffel's, and use the theme custom properties supplied by `FluentProvider`.
|
|
@@ -1,315 +1,313 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
.root {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-grid;
|
|
4
|
+
touch-action: none;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-items: center;
|
|
7
|
+
}
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
.horizontal:focus {
|
|
10
|
+
outline-style: none;
|
|
11
|
+
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
.horizontal:focus-visible {
|
|
14
|
+
outline-style: none;
|
|
15
|
+
}
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
.horizontal[data-fui-focus-within]:focus-within::after {
|
|
18
|
+
content: '';
|
|
19
|
+
position: absolute;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
z-index: 1;
|
|
22
|
+
border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
23
|
+
border-radius: var(--borderRadiusMedium);
|
|
24
|
+
top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
25
|
+
inset-inline-end: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
|
|
26
|
+
bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
27
|
+
inset-inline-start: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
|
|
28
|
+
}
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
.horizontal[data-fui-focus-within]:focus-within {
|
|
31
|
+
border-top-color: transparent;
|
|
32
|
+
border-inline-end-color: transparent;
|
|
33
|
+
border-bottom-color: transparent;
|
|
34
|
+
border-inline-start-color: transparent;
|
|
35
|
+
}
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
.vertical:focus {
|
|
38
|
+
outline-style: none;
|
|
39
|
+
}
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
.vertical:focus-visible {
|
|
42
|
+
outline-style: none;
|
|
43
|
+
}
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
.vertical[data-fui-focus-within]:focus-within::after {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
z-index: 1;
|
|
50
|
+
border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
51
|
+
border-radius: var(--borderRadiusMedium);
|
|
52
|
+
top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
53
|
+
inset-inline-end: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
|
|
54
|
+
bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
55
|
+
inset-inline-start: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
|
|
56
|
+
}
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
.vertical[data-fui-focus-within]:focus-within {
|
|
59
|
+
border-top-color: transparent;
|
|
60
|
+
border-inline-end-color: transparent;
|
|
61
|
+
border-bottom-color: transparent;
|
|
62
|
+
border-inline-start-color: transparent;
|
|
63
|
+
}
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
.small {
|
|
66
|
+
--fui-Slider__thumb--size: var(--spacingHorizontalL);
|
|
67
|
+
--fui-Slider__inner-thumb--radius: calc(var(--spacingHorizontalXS) * 1.25);
|
|
68
|
+
--fui-Slider__rail--size: var(--strokeWidthThick);
|
|
69
|
+
min-height: var(--spacingHorizontalXXL);
|
|
70
|
+
}
|
|
72
71
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
.medium {
|
|
73
|
+
--fui-Slider__thumb--size: var(--spacingHorizontalXL);
|
|
74
|
+
--fui-Slider__inner-thumb--radius: var(--spacingHorizontalSNudge);
|
|
75
|
+
--fui-Slider__rail--size: var(--spacingHorizontalXS);
|
|
76
|
+
min-height: var(--spacingHorizontalXXXL);
|
|
77
|
+
}
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
.horizontal {
|
|
80
|
+
min-width: calc(var(--spacingHorizontalXS) * 30);
|
|
81
|
+
grid-template-rows: 1fr var(--fui-Slider__thumb--size) 1fr;
|
|
82
|
+
grid-template-columns: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
|
|
83
|
+
}
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
.vertical {
|
|
86
|
+
min-height: calc(var(--spacingHorizontalXS) * 30);
|
|
87
|
+
grid-template-rows: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
|
|
88
|
+
grid-template-columns: 1fr var(--fui-Slider__thumb--size) 1fr;
|
|
89
|
+
}
|
|
91
90
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
.enabled:hover {
|
|
92
|
+
--fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundHover);
|
|
93
|
+
--fui-Slider__progress--color: var(--colorCompoundBrandBackgroundHover);
|
|
94
|
+
}
|
|
96
95
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
.enabled:active {
|
|
97
|
+
--fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundPressed);
|
|
98
|
+
--fui-Slider__progress--color: var(--colorCompoundBrandBackgroundPressed);
|
|
99
|
+
}
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
.enabled {
|
|
102
|
+
--fui-Slider__rail--color: var(--colorNeutralStrokeAccessible);
|
|
103
|
+
--fui-Slider__progress--color: var(--colorCompoundBrandBackground);
|
|
104
|
+
--fui-Slider__thumb--color: var(--colorCompoundBrandBackground);
|
|
105
|
+
}
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
.disabled {
|
|
108
|
+
--fui-Slider__thumb--color: var(--colorNeutralForegroundDisabled);
|
|
109
|
+
--fui-Slider__rail--color: var(--colorNeutralBackgroundDisabled);
|
|
110
|
+
--fui-Slider__progress--color: var(--colorNeutralForegroundDisabled);
|
|
111
|
+
}
|
|
113
112
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
.rail::before {
|
|
114
|
+
content: '';
|
|
115
|
+
position: absolute;
|
|
116
|
+
background-image: repeating-linear-gradient(
|
|
117
|
+
var(--fui-Slider--direction),
|
|
118
|
+
transparent 0%,
|
|
119
|
+
transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
120
|
+
var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
121
|
+
var(--colorNeutralBackground1) var(--fui-Slider--steps-percent)
|
|
122
|
+
);
|
|
123
|
+
}
|
|
125
124
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
125
|
+
.rail {
|
|
126
|
+
border-radius: var(--borderRadiusXLarge);
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
grid-row-start: 2;
|
|
129
|
+
grid-row-end: 2;
|
|
130
|
+
grid-column-start: 2;
|
|
131
|
+
grid-column-end: 2;
|
|
132
|
+
position: relative;
|
|
133
|
+
forced-color-adjust: none;
|
|
134
|
+
background-image: linear-gradient(
|
|
135
|
+
var(--fui-Slider--direction),
|
|
136
|
+
var(--fui-Slider__progress--color) 0%,
|
|
137
|
+
var(--fui-Slider__progress--color) var(--fui-Slider--progress),
|
|
138
|
+
var(--fui-Slider__rail--color) var(--fui-Slider--progress)
|
|
139
|
+
);
|
|
140
|
+
outline-width: var(--strokeWidthThin);
|
|
141
|
+
outline-style: solid;
|
|
142
|
+
outline-color: var(--colorTransparentStroke);
|
|
143
|
+
}
|
|
145
144
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
:where(.horizontal) > .rail::before {
|
|
146
|
+
inset-inline-start: calc(var(--strokeWidthThin) * -1);
|
|
147
|
+
inset-inline-end: calc(var(--strokeWidthThin) * -1);
|
|
148
|
+
height: var(--fui-Slider__rail--size);
|
|
149
|
+
}
|
|
151
150
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
151
|
+
:where(.horizontal) > .rail {
|
|
152
|
+
width: 100%;
|
|
153
|
+
height: var(--fui-Slider__rail--size);
|
|
154
|
+
}
|
|
156
155
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
:where(.vertical) > .rail::before {
|
|
157
|
+
width: var(--fui-Slider__rail--size);
|
|
158
|
+
top: calc(var(--strokeWidthThin) * -1);
|
|
159
|
+
bottom: calc(var(--strokeWidthThin) * -1);
|
|
160
|
+
}
|
|
162
161
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
:where(.vertical) > .rail {
|
|
163
|
+
width: var(--fui-Slider__rail--size);
|
|
164
|
+
height: 100%;
|
|
165
|
+
}
|
|
167
166
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
167
|
+
.thumb::before {
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: 0px;
|
|
170
|
+
inset-inline-start: 0px;
|
|
171
|
+
bottom: 0px;
|
|
172
|
+
inset-inline-end: 0px;
|
|
173
|
+
border-radius: var(--borderRadiusCircular);
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
content: '';
|
|
176
|
+
border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralStroke1);
|
|
177
|
+
}
|
|
179
178
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
179
|
+
.thumb {
|
|
180
|
+
--fui-Slider__thumb--position: clamp(
|
|
181
|
+
var(--fui-Slider__inner-thumb--radius),
|
|
182
|
+
var(--fui-Slider--progress),
|
|
183
|
+
calc(100% - var(--fui-Slider__inner-thumb--radius))
|
|
184
|
+
);
|
|
185
|
+
grid-row-start: 2;
|
|
186
|
+
grid-row-end: 2;
|
|
187
|
+
grid-column-start: 2;
|
|
188
|
+
grid-column-end: 2;
|
|
189
|
+
position: absolute;
|
|
190
|
+
width: var(--fui-Slider__thumb--size);
|
|
191
|
+
height: var(--fui-Slider__thumb--size);
|
|
192
|
+
pointer-events: none;
|
|
193
|
+
outline-style: none;
|
|
194
|
+
forced-color-adjust: none;
|
|
195
|
+
border-radius: var(--borderRadiusCircular);
|
|
196
|
+
box-shadow: 0 0 0 calc(var(--fui-Slider__thumb--size) * 0.2) var(--colorNeutralBackground1) inset;
|
|
197
|
+
background-color: var(--fui-Slider__thumb--color);
|
|
198
|
+
}
|
|
200
199
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
:where(.horizontal) > .thumb {
|
|
201
|
+
transform: translateX(-50%);
|
|
202
|
+
inset-inline-start: var(--fui-Slider__thumb--position);
|
|
203
|
+
}
|
|
205
204
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
:where(.horizontal) > .thumb:where(:dir(rtl)) {
|
|
206
|
+
transform: translateX(50%);
|
|
207
|
+
}
|
|
209
208
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
209
|
+
:where(.vertical) > .thumb {
|
|
210
|
+
transform: translateY(50%);
|
|
211
|
+
bottom: var(--fui-Slider__thumb--position);
|
|
212
|
+
}
|
|
214
213
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
:where(.disabled) > .thumb::before {
|
|
215
|
+
border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralForegroundDisabled);
|
|
216
|
+
}
|
|
218
217
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
218
|
+
.input {
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
opacity: 0;
|
|
221
|
+
grid-row-start: 1;
|
|
222
|
+
grid-row-end: -1;
|
|
223
|
+
grid-column-start: 1;
|
|
224
|
+
grid-column-end: -1;
|
|
225
|
+
padding: 0;
|
|
226
|
+
margin: 0;
|
|
227
|
+
}
|
|
229
228
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
229
|
+
:where(.horizontal) > .input {
|
|
230
|
+
height: var(--fui-Slider__thumb--size);
|
|
231
|
+
width: 100%;
|
|
232
|
+
}
|
|
234
233
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
234
|
+
:where(.vertical) > .input {
|
|
235
|
+
height: 100%;
|
|
236
|
+
width: var(--fui-Slider__thumb--size);
|
|
237
|
+
}
|
|
239
238
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
:where(.disabled) > .input {
|
|
240
|
+
cursor: default;
|
|
241
|
+
}
|
|
243
242
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
243
|
+
@media (forced-colors: active) {
|
|
244
|
+
.horizontal[data-fui-focus-within]:focus-within::after {
|
|
245
|
+
border-top-color: Highlight;
|
|
246
|
+
border-inline-end-color: Highlight;
|
|
247
|
+
border-bottom-color: Highlight;
|
|
248
|
+
border-inline-start-color: Highlight;
|
|
251
249
|
}
|
|
250
|
+
}
|
|
252
251
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
252
|
+
@media (forced-colors: active) {
|
|
253
|
+
.vertical[data-fui-focus-within]:focus-within::after {
|
|
254
|
+
border-top-color: Highlight;
|
|
255
|
+
border-inline-end-color: Highlight;
|
|
256
|
+
border-bottom-color: Highlight;
|
|
257
|
+
border-inline-start-color: Highlight;
|
|
260
258
|
}
|
|
259
|
+
}
|
|
261
260
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
261
|
+
@media (forced-colors: active) {
|
|
262
|
+
.enabled:hover {
|
|
263
|
+
--fui-Slider__thumb--color: Highlight;
|
|
264
|
+
--fui-Slider__progress--color: Highlight;
|
|
267
265
|
}
|
|
266
|
+
}
|
|
268
267
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
268
|
+
@media (forced-colors: active) {
|
|
269
|
+
.enabled {
|
|
270
|
+
--fui-Slider__rail--color: CanvasText;
|
|
271
|
+
--fui-Slider__thumb--color: Highlight;
|
|
272
|
+
--fui-Slider__progress--color: Highlight;
|
|
275
273
|
}
|
|
274
|
+
}
|
|
276
275
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
276
|
+
@media (forced-colors: active) {
|
|
277
|
+
.disabled {
|
|
278
|
+
--fui-Slider__rail--color: GrayText;
|
|
279
|
+
--fui-Slider__thumb--color: GrayText;
|
|
280
|
+
--fui-Slider__progress--color: GrayText;
|
|
283
281
|
}
|
|
282
|
+
}
|
|
284
283
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}
|
|
284
|
+
@media (forced-colors: active) {
|
|
285
|
+
.rail::before {
|
|
286
|
+
background-image: repeating-linear-gradient(
|
|
287
|
+
var(--fui-Slider--direction),
|
|
288
|
+
transparent 0%,
|
|
289
|
+
transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
290
|
+
HighlightText calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
291
|
+
HighlightText var(--fui-Slider--steps-percent)
|
|
292
|
+
);
|
|
295
293
|
}
|
|
294
|
+
}
|
|
296
295
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
296
|
+
@supports (writing-mode: sideways-lr) {
|
|
297
|
+
:where(.vertical) > .input {
|
|
298
|
+
writing-mode: vertical-lr;
|
|
299
|
+
direction: rtl;
|
|
302
300
|
}
|
|
301
|
+
}
|
|
303
302
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
303
|
+
@supports (writing-mode: sideways-lr) {
|
|
304
|
+
:where(.vertical) > .input:where(:dir(rtl)) {
|
|
305
|
+
direction: ltr;
|
|
308
306
|
}
|
|
307
|
+
}
|
|
309
308
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
309
|
+
@supports not (writing-mode: sideways-lr) {
|
|
310
|
+
:where(.vertical) > .input {
|
|
311
|
+
-webkit-appearance: slider-vertical;
|
|
314
312
|
}
|
|
315
313
|
}
|
|
@@ -6,6 +6,10 @@ import { useFocusWithin } from "@fluentui/react-tabster";
|
|
|
6
6
|
export const useSlider_unstable = (props, ref)=>{
|
|
7
7
|
const { size = 'medium', ...baseProps } = props;
|
|
8
8
|
const baseState = useSliderBase_unstable(baseProps, ref);
|
|
9
|
+
// Focus-within ref drives the styled focus outline; applied here rather than in the base hook
|
|
10
|
+
// so the base hook does not depend on react-tabster (keyborg).
|
|
11
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
12
|
+
baseState.root.ref = useMergedRefs(baseState.root.ref, useFocusWithin());
|
|
9
13
|
return {
|
|
10
14
|
...baseState,
|
|
11
15
|
size
|
|
@@ -65,7 +69,6 @@ export const useSlider_unstable = (props, ref)=>{
|
|
|
65
69
|
if (state.input['aria-orientation'] === undefined) {
|
|
66
70
|
state.input['aria-orientation'] = state.vertical ? 'vertical' : 'horizontal';
|
|
67
71
|
}
|
|
68
|
-
state.root.ref = useMergedRefs(state.root.ref, useFocusWithin());
|
|
69
72
|
useSliderState_unstable(state, props);
|
|
70
73
|
return state;
|
|
71
74
|
};
|