@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 CHANGED
@@ -1,23 +1,23 @@
1
1
  # Change Log - @fluentui/react-slider
2
2
 
3
- <!-- This log was last generated on Tue, 03 Nov 2026 14:03:00 GMT and should not be manually modified. -->
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.1-experimental.css-modules.20261103-d6c85ee2a9.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0)
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
- Tue, 03 Nov 2026 14:03:00 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.6.8..@fluentui/react-slider_v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0)
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.1-experimental.css-modules.20261103-d6c85ee2a9 ([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.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
- - Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
- - Bump @fluentui/react-tabster to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
- - Bump @fluentui/react-theme to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
- - Bump @fluentui/react-utilities to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
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. All component rules are in `@layer fluent` and use the theme custom properties supplied by `FluentProvider`.
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
- @layer fluent {
2
- .root {
3
- position: relative;
4
- display: inline-grid;
5
- touch-action: none;
6
- align-items: center;
7
- justify-items: center;
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
- .horizontal:focus {
11
- outline-style: none;
12
- }
9
+ .horizontal:focus {
10
+ outline-style: none;
11
+ }
13
12
 
14
- .horizontal:focus-visible {
15
- outline-style: none;
16
- }
13
+ .horizontal:focus-visible {
14
+ outline-style: none;
15
+ }
17
16
 
18
- .horizontal[data-fui-focus-within]:focus-within::after {
19
- content: '';
20
- position: absolute;
21
- pointer-events: none;
22
- z-index: 1;
23
- border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
24
- border-radius: var(--borderRadiusMedium);
25
- top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
26
- inset-inline-end: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
27
- bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
28
- inset-inline-start: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
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
- .horizontal[data-fui-focus-within]:focus-within {
32
- border-top-color: transparent;
33
- border-inline-end-color: transparent;
34
- border-bottom-color: transparent;
35
- border-inline-start-color: transparent;
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
- .vertical:focus {
39
- outline-style: none;
40
- }
37
+ .vertical:focus {
38
+ outline-style: none;
39
+ }
41
40
 
42
- .vertical:focus-visible {
43
- outline-style: none;
44
- }
41
+ .vertical:focus-visible {
42
+ outline-style: none;
43
+ }
45
44
 
46
- .vertical[data-fui-focus-within]:focus-within::after {
47
- content: '';
48
- position: absolute;
49
- pointer-events: none;
50
- z-index: 1;
51
- border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
52
- border-radius: var(--borderRadiusMedium);
53
- top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
54
- inset-inline-end: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
55
- bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
56
- inset-inline-start: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
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
- .vertical[data-fui-focus-within]:focus-within {
60
- border-top-color: transparent;
61
- border-inline-end-color: transparent;
62
- border-bottom-color: transparent;
63
- border-inline-start-color: transparent;
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
- .small {
67
- --fui-Slider__thumb--size: var(--spacingHorizontalL);
68
- --fui-Slider__inner-thumb--radius: calc(var(--spacingHorizontalXS) * 1.25);
69
- --fui-Slider__rail--size: var(--strokeWidthThick);
70
- min-height: var(--spacingHorizontalXXL);
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
- .medium {
74
- --fui-Slider__thumb--size: var(--spacingHorizontalXL);
75
- --fui-Slider__inner-thumb--radius: var(--spacingHorizontalSNudge);
76
- --fui-Slider__rail--size: var(--spacingHorizontalXS);
77
- min-height: var(--spacingHorizontalXXXL);
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
- .horizontal {
81
- min-width: calc(var(--spacingHorizontalXS) * 30);
82
- grid-template-rows: 1fr var(--fui-Slider__thumb--size) 1fr;
83
- grid-template-columns: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
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
- .vertical {
87
- min-height: calc(var(--spacingHorizontalXS) * 30);
88
- grid-template-rows: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
89
- grid-template-columns: 1fr var(--fui-Slider__thumb--size) 1fr;
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
- .enabled:hover {
93
- --fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundHover);
94
- --fui-Slider__progress--color: var(--colorCompoundBrandBackgroundHover);
95
- }
91
+ .enabled:hover {
92
+ --fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundHover);
93
+ --fui-Slider__progress--color: var(--colorCompoundBrandBackgroundHover);
94
+ }
96
95
 
97
- .enabled:active {
98
- --fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundPressed);
99
- --fui-Slider__progress--color: var(--colorCompoundBrandBackgroundPressed);
100
- }
96
+ .enabled:active {
97
+ --fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundPressed);
98
+ --fui-Slider__progress--color: var(--colorCompoundBrandBackgroundPressed);
99
+ }
101
100
 
102
- .enabled {
103
- --fui-Slider__rail--color: var(--colorNeutralStrokeAccessible);
104
- --fui-Slider__progress--color: var(--colorCompoundBrandBackground);
105
- --fui-Slider__thumb--color: var(--colorCompoundBrandBackground);
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
- .disabled {
109
- --fui-Slider__thumb--color: var(--colorNeutralForegroundDisabled);
110
- --fui-Slider__rail--color: var(--colorNeutralBackgroundDisabled);
111
- --fui-Slider__progress--color: var(--colorNeutralForegroundDisabled);
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
- .rail::before {
115
- content: '';
116
- position: absolute;
117
- background-image: repeating-linear-gradient(
118
- var(--fui-Slider--direction),
119
- transparent 0%,
120
- transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
121
- var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
122
- var(--colorNeutralBackground1) var(--fui-Slider--steps-percent)
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
- .rail {
127
- border-radius: var(--borderRadiusXLarge);
128
- pointer-events: none;
129
- grid-row-start: 2;
130
- grid-row-end: 2;
131
- grid-column-start: 2;
132
- grid-column-end: 2;
133
- position: relative;
134
- forced-color-adjust: none;
135
- background-image: linear-gradient(
136
- var(--fui-Slider--direction),
137
- var(--fui-Slider__progress--color) 0%,
138
- var(--fui-Slider__progress--color) var(--fui-Slider--progress),
139
- var(--fui-Slider__rail--color) var(--fui-Slider--progress)
140
- );
141
- outline-width: var(--strokeWidthThin);
142
- outline-style: solid;
143
- outline-color: var(--colorTransparentStroke);
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
- :where(.horizontal) > .rail::before {
147
- inset-inline-start: calc(var(--strokeWidthThin) * -1);
148
- inset-inline-end: calc(var(--strokeWidthThin) * -1);
149
- height: var(--fui-Slider__rail--size);
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
- :where(.horizontal) > .rail {
153
- width: 100%;
154
- height: var(--fui-Slider__rail--size);
155
- }
151
+ :where(.horizontal) > .rail {
152
+ width: 100%;
153
+ height: var(--fui-Slider__rail--size);
154
+ }
156
155
 
157
- :where(.vertical) > .rail::before {
158
- width: var(--fui-Slider__rail--size);
159
- top: calc(var(--strokeWidthThin) * -1);
160
- bottom: calc(var(--strokeWidthThin) * -1);
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
- :where(.vertical) > .rail {
164
- width: var(--fui-Slider__rail--size);
165
- height: 100%;
166
- }
162
+ :where(.vertical) > .rail {
163
+ width: var(--fui-Slider__rail--size);
164
+ height: 100%;
165
+ }
167
166
 
168
- .thumb::before {
169
- position: absolute;
170
- top: 0px;
171
- inset-inline-start: 0px;
172
- bottom: 0px;
173
- inset-inline-end: 0px;
174
- border-radius: var(--borderRadiusCircular);
175
- box-sizing: border-box;
176
- content: '';
177
- border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralStroke1);
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
- .thumb {
181
- --fui-Slider__thumb--position: clamp(
182
- var(--fui-Slider__inner-thumb--radius),
183
- var(--fui-Slider--progress),
184
- calc(100% - var(--fui-Slider__inner-thumb--radius))
185
- );
186
- grid-row-start: 2;
187
- grid-row-end: 2;
188
- grid-column-start: 2;
189
- grid-column-end: 2;
190
- position: absolute;
191
- width: var(--fui-Slider__thumb--size);
192
- height: var(--fui-Slider__thumb--size);
193
- pointer-events: none;
194
- outline-style: none;
195
- forced-color-adjust: none;
196
- border-radius: var(--borderRadiusCircular);
197
- box-shadow: 0 0 0 calc(var(--fui-Slider__thumb--size) * 0.2) var(--colorNeutralBackground1) inset;
198
- background-color: var(--fui-Slider__thumb--color);
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
- :where(.horizontal) > .thumb {
202
- transform: translateX(-50%);
203
- inset-inline-start: var(--fui-Slider__thumb--position);
204
- }
200
+ :where(.horizontal) > .thumb {
201
+ transform: translateX(-50%);
202
+ inset-inline-start: var(--fui-Slider__thumb--position);
203
+ }
205
204
 
206
- :where(.horizontal) > .thumb:where(:dir(rtl)) {
207
- transform: translateX(50%);
208
- }
205
+ :where(.horizontal) > .thumb:where(:dir(rtl)) {
206
+ transform: translateX(50%);
207
+ }
209
208
 
210
- :where(.vertical) > .thumb {
211
- transform: translateY(50%);
212
- bottom: var(--fui-Slider__thumb--position);
213
- }
209
+ :where(.vertical) > .thumb {
210
+ transform: translateY(50%);
211
+ bottom: var(--fui-Slider__thumb--position);
212
+ }
214
213
 
215
- :where(.disabled) > .thumb::before {
216
- border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralForegroundDisabled);
217
- }
214
+ :where(.disabled) > .thumb::before {
215
+ border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralForegroundDisabled);
216
+ }
218
217
 
219
- .input {
220
- cursor: pointer;
221
- opacity: 0;
222
- grid-row-start: 1;
223
- grid-row-end: -1;
224
- grid-column-start: 1;
225
- grid-column-end: -1;
226
- padding: 0;
227
- margin: 0;
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
- :where(.horizontal) > .input {
231
- height: var(--fui-Slider__thumb--size);
232
- width: 100%;
233
- }
229
+ :where(.horizontal) > .input {
230
+ height: var(--fui-Slider__thumb--size);
231
+ width: 100%;
232
+ }
234
233
 
235
- :where(.vertical) > .input {
236
- height: 100%;
237
- width: var(--fui-Slider__thumb--size);
238
- }
234
+ :where(.vertical) > .input {
235
+ height: 100%;
236
+ width: var(--fui-Slider__thumb--size);
237
+ }
239
238
 
240
- :where(.disabled) > .input {
241
- cursor: default;
242
- }
239
+ :where(.disabled) > .input {
240
+ cursor: default;
241
+ }
243
242
 
244
- @media (forced-colors: active) {
245
- .horizontal[data-fui-focus-within]:focus-within::after {
246
- border-top-color: Highlight;
247
- border-inline-end-color: Highlight;
248
- border-bottom-color: Highlight;
249
- border-inline-start-color: Highlight;
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
- @media (forced-colors: active) {
254
- .vertical[data-fui-focus-within]:focus-within::after {
255
- border-top-color: Highlight;
256
- border-inline-end-color: Highlight;
257
- border-bottom-color: Highlight;
258
- border-inline-start-color: Highlight;
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
- @media (forced-colors: active) {
263
- .enabled:hover {
264
- --fui-Slider__thumb--color: Highlight;
265
- --fui-Slider__progress--color: Highlight;
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
- @media (forced-colors: active) {
270
- .enabled {
271
- --fui-Slider__rail--color: CanvasText;
272
- --fui-Slider__thumb--color: Highlight;
273
- --fui-Slider__progress--color: Highlight;
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
- @media (forced-colors: active) {
278
- .disabled {
279
- --fui-Slider__rail--color: GrayText;
280
- --fui-Slider__thumb--color: GrayText;
281
- --fui-Slider__progress--color: GrayText;
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
- @media (forced-colors: active) {
286
- .rail::before {
287
- background-image: repeating-linear-gradient(
288
- var(--fui-Slider--direction),
289
- transparent 0%,
290
- transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
291
- HighlightText calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
292
- HighlightText var(--fui-Slider--steps-percent)
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
- @supports (writing-mode: sideways-lr) {
298
- :where(.vertical) > .input {
299
- writing-mode: vertical-lr;
300
- direction: rtl;
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
- @supports (writing-mode: sideways-lr) {
305
- :where(.vertical) > .input:where(:dir(rtl)) {
306
- direction: ltr;
307
- }
303
+ @supports (writing-mode: sideways-lr) {
304
+ :where(.vertical) > .input:where(:dir(rtl)) {
305
+ direction: ltr;
308
306
  }
307
+ }
309
308
 
310
- @supports not (writing-mode: sideways-lr) {
311
- :where(.vertical) > .input {
312
- -webkit-appearance: slider-vertical;
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
  };