Skip to content

fix(material/slider): expand value indicators for long labels - #33785

Open
mnkprs wants to merge 1 commit into
angular:mainfrom
mnkprs:fix/slider-long-value-indicators-33606
Open

fix(material/slider): expand value indicators for long labels#33785
mnkprs wants to merge 1 commit into
angular:mainfrom
mnkprs:fix/slider-long-value-indicators-33606

Conversation

@mnkprs

@mnkprs mnkprs commented Sep 9, 2026

Copy link
Copy Markdown

M3 slider labels use a fixed, rotated 28px container, so years, larger numbers and formatted values can overflow it. Use a horizontally expanding pill with padding, keep labels on one line, and center the entrance animation beneath the label.

This changes the M3 value-indicator shape, including short labels, while retaining its 28px height and existing colors/typography. M2 retains its rectangular label and caret.

Adds browser regressions for growth and shrinkage, text containment, height and centering on single/range sliders in LTR and RTL, plus five-digit/year-range examples in the dev app.

Validation:

  • Four regression cases fail against the original styles and pass with the change.
  • Slider Chromium and Firefox tests pass; cross-theme browser checks cover M2, M3, RTL and forced colors.
  • Sass compilation, theming unit tests, slider harness tests and the slider dev-app build pass.
  • All 178 Chromium test targets pass across Angular Components.
  • Full TypeScript lint, style lint, formatting and commit-message checks pass.

Fixes #33606.

Use an auto-width M3 pill and keep formatted labels on one line. Cover label growth, shrinkage and centering on single and range sliders in LTR and RTL.

Fixes angular#33606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(Slider): The Slider component should be able to properly display values with four or more digits

1 participant