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

Hidden content visually is not hidden from a screen reader #5

Open
mohammad-suliman opened this issue Jan 15, 2023 · 0 comments
Open

Comments

@mohammad-suliman
Copy link

mohammad-suliman commented Jan 15, 2023

Problem description:

As I understand, the dialogue with the chatbot is a sequence of dialogs one displayed each step in the process. For a screen reader, the content of other dialogs is always available even though they are visually hidden.

Solution:

  • The availability of the content should be the same both visually and semantically, that is for a screen reader, in most cases
  • To achieve this in the mentioned case, you can add the aria-modal attribute to the div of the visually displayed modal
  • See aria-modal - MDN
  • The keyboard focus in a case of a dialog shouldn't be able to reach content which is visually hidden
  • See this dialog example from w3
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

No branches or pull requests

1 participant