Skip to content

Commit

Permalink
fixup! perf(material/slider): use flex to position tick marks
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnermaciel committed Jan 9, 2025
1 parent 0f296db commit 5210d43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/material/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,17 @@ $_mat-slots: (tokens-mat-slider.$prefix, tokens-mat-slider.get-token-slots());
display: flex;
height: 100%;
justify-content: space-between;
padding: 0 2px;
padding: 0 4px;
position: absolute;
width: 100%;
}

.mdc-slider__tick-mark--active,
.mdc-slider__tick-mark--inactive {
flex-shrink: 0;
margin: -2px;
}

.mdc-slider__tick-mark--active,
.mdc-slider__tick-mark--inactive {
@include token-utils.use-tokens($_mdc-slots...) {
Expand Down

0 comments on commit 5210d43

Please sign in to comment.