Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve accessibility of input #1219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vbudovski
Copy link

Using "display: none" often prevents screen readers from seeing the content. What we really want is to visually hide
the standard input. We also add a placeholder to be announced by screen readers which can optionally be rendered also.

What kind of change does this PR introduce?

  • Bug Fix
  • Feature
  • Refactoring
  • Style
  • Build
  • Chore
  • Documentation
  • CI

Did you add tests for your changes?

  • Yes, my code is well tested
  • Not relevant

If relevant, did you update the documentation?

  • Yes, I've updated the documentation
  • Not relevant

Summary
Using "display: none" often prevents screen readers from seeing the content. What we really want is to visually hide
the standard input. We also add a placeholder to be announced by screen readers which can optionally be rendered also.

Does this PR introduce a breaking change?
Non-breaking change.

Other information

Using "display: none" often prevents screen readers from seeing the content. What we really want is to visually hide
the standard input. We also add a placeholder to be announced by screen readers which can optionally be rendered also.
@brandonpittman
Copy link

What's the blocker on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants