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

Input fields in dialogs need to be labeled #6581

Closed
clapierre opened this issue Jun 14, 2019 · 3 comments
Closed

Input fields in dialogs need to be labeled #6581

clapierre opened this issue Jun 14, 2019 · 3 comments

Comments

@clapierre
Copy link

clapierre commented Jun 14, 2019

From web4all hackathon diagram-codesprint#12

Description

Dialogs are not accessible. When opened, nothing is read beside the "Ok" button (which has the focus. They need to read the dialog title.

Additionally, those dialogs with input fields need labels on the input fields.

The fix to make the dialog state their title was two-fold:

  1. The title was made an h1 and given an id.
  2. The dialog uses aria-labelledby to point to that id.

The fix for input field was similar:

  1. The label was given an id
  2. The input filed or combo box then pointed to that idvia aria-labelledby.

Note: there is some code duplication and it would be good to do some refactorings so that these kinds of things are picked up automatically by any new dialog. It would also make some display more uniform.

@tonyfast
Copy link
Contributor

tonyfast commented Dec 4, 2020

this issues relates to Text Issue Area # 4 in #9399

@isabela-pf isabela-pf added this to Need sorting in Accessibility Jun 9, 2021
@isabela-pf isabela-pf moved this from Need sorting to Text in Accessibility Jun 10, 2021
@t03857785
Copy link
Contributor

I think this is now resolved by #14560 with a slightly altered implementation

@krassowski
Copy link
Member

Thank you, closing as resolved!

If anyone from the future believes there is a follow-up needed, please open a new issue with details (and referencing this one).

Accessibility automation moved this from Text to Done May 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

5 participants