-
Notifications
You must be signed in to change notification settings - Fork 21
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/2736 error container in pattern marked as hidden but has a focusable element #2801
Fix/2736 error container in pattern marked as hidden but has a focusable element #2801
Conversation
✅ Deploy Preview for ons-design-system-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the explanation in the issue its not completely clear exactly what needs to be done, maybe we need to confirm with Emily if possible but I think that its also suggesting we move the live region roles too etc too
Ive tested this with voiceover and comparing it to what is currently in the service manual after this change it now reads out what is in the error message twice, which I don't think is something we want. |
…s-hidden-but-has-a-focusable-element
In all the new screenshots that have just been added it highlights there is an extra thick line at the bottom of the error box. I think this may be because you have changed the list element to be a div. Also because of this change you now have a redundant unordered list with no list items in the html. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been tested with the API?
…s-hidden-but-has-a-focusable-element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more minor comments
Co-authored-by: rmccar <[email protected]>
Co-authored-by: rmccar <[email protected]>
…s-hidden-but-has-a-focusable-element
…s-hidden-but-has-a-focusable-element
…s-hidden-but-has-a-focusable-element
What is the context of this PR?
fixes #2736
Removed aria-hidden from list warning element because it has a focusable child element. The aria-hidden is set (within div element with role=status) only when the list warning element is created.
The autosuggest results(ie title and list of results) has also been removed from the html content whenever there is an error.
Now the screen reader reads the message just once. The screen reader also reads out the instructions on how to interact with it.
How to review
For all components and patterns that use the auto suggest, check if the aria-hidden tag has been removed from the list element with the focusable child element