Skip to content

Commit

Permalink
fix(slider): fix slider focus ring inheritance weakness
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 539101383
  • Loading branch information
Elliott Marquez authored and copybara-github committed Jun 9, 2023
1 parent 6ee8dd5 commit e44c903
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions slider/lib/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ $_md-sys-shape: tokens.md-sys-shape-values();
shadow-color: var(--_handle-shadow-color),
)
);
// Focus ring
@include focus-ring.theme(
(
'outward-offset': -2px,
shape: 9999px,
)
);
}

md-elevation {
Expand Down Expand Up @@ -449,15 +456,6 @@ $_md-sys-shape: tokens.md-sys-shape-values();
z-index: 1;
}

// Focus ring
md-focus-ring {
@include focus-ring.theme(
(
'outward-offset': -2px,
)
);
}

// Ripple
.handle {
@include ripple.theme(
Expand Down

0 comments on commit e44c903

Please sign in to comment.