Skip to content

Commit 3b25de9

Browse files
authored
fix(material/slider): set word-break on value-indicator (#27709)
* fixes #27612
1 parent 24202a8 commit 3b25de9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material/slider/slider.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ $mat-slider-horizontal-margin: 8px !default;
135135
.mat-mdc-focus-indicator::before {
136136
border-radius: 50%;
137137
}
138+
139+
// Stop parent word-break from altering
140+
// the word-break of the value indicator.
141+
.mdc-slider__value-indicator {
142+
word-break: normal;
143+
}
138144
}
139145
// In the MDC slider the focus indicator is inside the thumb.
140146
.mdc-slider__thumb--focused .mat-mdc-focus-indicator::before {

0 commit comments

Comments
 (0)