From 8f72617856dcd2fb8974f7fc3034a3f4974347b2 Mon Sep 17 00:00:00 2001 From: Denis Bowen Date: Fri, 15 Nov 2024 16:46:42 +0000 Subject: [PATCH] fix(material/slider): update documentation update documentation to let users know about passing 3:1 non text contrast ratio for active and inactive slider tracks fixes b/286300099 --- src/material/slider/slider.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/material/slider/slider.md b/src/material/slider/slider.md index 5d0919d3b6d2..c8e358b8e582 100644 --- a/src/material/slider/slider.md +++ b/src/material/slider/slider.md @@ -77,3 +77,8 @@ The slider has the following keyboard bindings: `MatSlider` uses an internal `` 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. \ No newline at end of file