Skip to content

Commit e44c903

Browse files
Elliott Marquezcopybara-github
authored andcommitted
fix(slider): fix slider focus ring inheritance weakness
PiperOrigin-RevId: 539101383
1 parent 6ee8dd5 commit e44c903

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

slider/lib/_slider.scss

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ $_md-sys-shape: tokens.md-sys-shape-values();
9393
shadow-color: var(--_handle-shadow-color),
9494
)
9595
);
96+
// Focus ring
97+
@include focus-ring.theme(
98+
(
99+
'outward-offset': -2px,
100+
shape: 9999px,
101+
)
102+
);
96103
}
97104

98105
md-elevation {
@@ -449,15 +456,6 @@ $_md-sys-shape: tokens.md-sys-shape-values();
449456
z-index: 1;
450457
}
451458

452-
// Focus ring
453-
md-focus-ring {
454-
@include focus-ring.theme(
455-
(
456-
'outward-offset': -2px,
457-
)
458-
);
459-
}
460-
461459
// Ripple
462460
.handle {
463461
@include ripple.theme(

0 commit comments

Comments
 (0)