question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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.

Lighthouse report

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:

  1. Launch Chrome/Chromium
  2. Go to https://next.material-ui.com/components/text-fields/
  3. Launch Developer Tools
  4. 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
oliviertassinaricommented, Feb 21, 2021

@Dripcoding You can go ahead 😃

0reactions
oliviertassinaricommented, Feb 22, 2021

It looks like you’re trying to change something else here.

@eps1lon I see 4 values:

  1. Update the palette to match the spec
  2. Bring AA contrast on the filled input
  3. Fix the ugly grey background-color
  4. Remove the potential confusion around the filled input being disabled

I think that 1. can be solved independently. I don’t think that 2,3,4 can.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found