Skip to content

Commit ed03088

Browse files
authored
fix(material/slider): update documentation (angular#30029)
update documentation to let users know about passing 3:1 non text contrast ratio for active and inactive slider tracks fixes b/286300099
1 parent e8d009f commit ed03088

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material/slider/slider.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@ The slider has the following keyboard bindings:
7777

7878
`MatSlider` uses an internal `<input type="range">` to provide an accessible experience. The input
7979
receives focus and it can be labelled using `aria-label` or `aria-labelledby`.
80+
81+
Make sure the colors of the active and inactive track of the `MatSlider` meet
82+
at least a 3:1 contrast ratio with the background. This can be achieved through
83+
changing the active or inactive track colors or showing tick marks on the
84+
track that have at least a 3:1 color contrast ratio with the background.

0 commit comments

Comments
 (0)