[TextField] Accessibility contrast issue with filled variant
See original GitHub issue- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
The current filled variant of TextField does not pass the Lighthouse accessibility check on contrast.
Expected Behavior 🤔
The text color should follow the material design specs, which will make the Lighthouse accessibility check on contrast pass.
Steps to Reproduce 🕹
Steps:
- Launch Chrome/Chromium
- Go to https://next.material-ui.com/components/text-fields/
- Launch Developer Tools
- Run a Lighthouse accessibility audit
Context 🔦
I want filled variants of TextField to be accessible out of the box.
Your Environment 🌎
`npx @material-ui/envinfo`
System:
OS: Linux 5.10 Fedora 33 (Workstation Edition) 33 (Workstation Edition)
Binaries:
Node: 14.15.4 - /usr/bin/node
Yarn: Not Found
npm: 6.14.10 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: 85.0.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
[TextField] Accessibility contrast issue with filled variant #24947
The issue is present in the latest release. I have searched the issues of this repository and believe that this is not a...
Read more >Contrast (Minimum) - Low Vision Accessibility Task Force
See working example at Accessible Contrast for Text Input ... text is also an issue, needing contrast but not wanting to make it...
Read more >Text fields - Material Design
A mobile UI for a contacts app form with many filled text fields ... of text fields by creating contrast between the text...
Read more >MaterialUI TextField : changing background color is not ...
I was able to get the correct background color by removing variant=filled or setting it to standard or outlined , but then the...
Read more >prefers-contrast - CSS: Cascading Style Sheets | MDN
The prefers-contrast CSS media feature is used to detect whether the user has requested the web content to be presented with a lower...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Dripcoding You can go ahead 😃
@eps1lon I see 4 values:
I think that 1. can be solved independently. I don’t think that 2,3,4 can.