Skip to content

Commit

Permalink
fix(material/slider): update documentation (#30029)
Browse files Browse the repository at this point in the history
update documentation to let users know about passing 3:1 non
text contrast ratio for active and inactive slider tracks

fixes b/286300099

(cherry picked from commit ed03088)
  • Loading branch information
DBowen33 authored and crisbeto committed Nov 20, 2024
1 parent 18f7f4b commit 3754354
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/material/slider/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@ The slider has the following keyboard bindings:

`MatSlider` uses an internal `<input type="range">` to provide an accessible experience. The input
receives focus and it can be labelled using `aria-label` or `aria-labelledby`.

Make sure the colors of the active and inactive track of the `MatSlider` meet
at least a 3:1 contrast ratio with the background. This can be achieved through
changing the active or inactive track colors or showing tick marks on the
track that have at least a 3:1 color contrast ratio with the background.

0 comments on commit 3754354

Please sign in to comment.