angular / angular/components

Accessibility issue (Mat Checkbox and Mat Slider): Ripple around checkbox or slider is not meeting sufficient color contrast ratio of 3:1 for WCAG AA compliance

オープン
#27,755 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Accessibility area: material/checkbox area: material/slide-toggle
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

- Ripple around the Mat Checkbox and Mat Slider are not reaching the WCAG Non text contrast ratio of 3:1.
- Since the ratio is not met application is in a non complaint state for the mentioned components (Slider and Checkbox)

### Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-cwzzkd
Steps to reproduce:
1. Open Stack Blitz url above
2. On the Preview the Mat Slider and Mat Checkbox are provided
3. Select Mat Slider to toggle
4. The Ripple around the round slider color is not meeting the non text contrast ratio for WCAG AA compliance (3:1)
5. Similarly the Ripple around the Checkbox after selecting is not meeting the non text contrast ration for WCAG AA compliance (3:1)

### Expected Behavior

1. Both the Mat Slider and Mat Checkbox ripple color need to meet the non text contrast ratio (3:1) to be compliant since it is effecting Accessibility users.

### Actual Behavior

1. Both the Mat Slider and Mat Checkbox ripple color are not meeting the non text contrast ratio (3:1).

### Environment

- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

Any help will take our application be more compliant for ADA and Accessibility

Thanks,
Venkat P.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている StackBlitz の再現例から始め、Mat Checkbox と Mat Slider の ripple スタイルを調べます。両方のコンポーネントで各 ripple が、非テキストコンテンツに対して指定されている WCAG AA のコントラスト比 3:1 を満たすことを確認して、修正を確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
accessibility, frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。