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

[Bug Report] v-input hint/errors aren't being read by screenreaders #8431

Closed
phiter opened this issue Aug 9, 2019 · 1 comment · Fixed by #8681
Closed

[Bug Report] v-input hint/errors aren't being read by screenreaders #8431

phiter opened this issue Aug 9, 2019 · 1 comment · Fixed by #8681
Labels
a11y Accessibility issue C: VInput VInput T: enhancement Functionality that enhances existing features

Comments

@phiter
Copy link
Contributor

phiter commented Aug 9, 2019

Environment

Vuetify Version: 2.0.5
Vue Version: 2.6.10
Browsers: Chrome 75.0.3770.100
OS: Linux x86_64

Steps to reproduce

  1. Have a screenreader in hand (or ChromeVox).
  2. Input something, errors will show up.

Expected Behavior

The screen reader should be reading those messages.

Actual Behavior

It is not.

Reproduction Link

https://codepen.io/phiter/pen/zgJReL

Other comments

I found a solution by adding role="alert" to the v-messages__wrapper div, changing the source on this part:

genChildren () {
return this.$createElement('transition-group', {
staticClass: 'v-messages__wrapper',
attrs: {
name: 'message-transition',
tag: 'div',
},
}, this.value.map(this.genMessage))
},

This causes the screenreader to actually read the message, which is what would be expected.

@ghost ghost added the S: triage label Aug 9, 2019
@phiter
Copy link
Contributor Author

phiter commented Aug 9, 2019

Another thing, which could be another issue, is to add a aria-describedby attr to the input and use a random id for the generated hint div, so you could use the hint as a description to the input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility issue C: VInput VInput T: enhancement Functionality that enhances existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants