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

browser: jsbuilder: replace button label for span element #10986

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

Conversation

hcvcastro
Copy link
Member

Accessibility request to remove "label for" elements for button

Change-Id: Ief83bb73f6befbe39097de3e6aa550d58fd04de5
Signed-off-by: Henry Castro [email protected]

Accessibility request to remove "label for" elements for button

Change-Id: Ief83bb73f6befbe39097de3e6aa550d58fd04de5
Signed-off-by: Henry Castro <[email protected]>
label.textContent = builder._cleanText(data.text);
builder._stressAccessKey(label, button.accessKey);
controls['label'] = label;
var span = L.DomUtil.create('span', 'ui-content unolabel', button);
Copy link
Contributor

@eszkadev eszkadev Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure we want to remove native "label" type?
It provides automatic information for text-to-speach software what to read and which input field it labels

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it's not for button element: https://www.w3schools.com/tags/tag_label.asp

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but don't we need to add 'labelled-by' or 'labelFor' then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not specify the attribute change in the task description. Please ask Lilly for more details

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

Successfully merging this pull request may close these issues.

2 participants