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: accessibility: add 'aria-disabled' attribute #11082

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

Conversation

hcvcastro
Copy link
Member

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

@@ -381,6 +381,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
spinfield.setAttribute('disabled', 'true');
}

spinfield.setAttribute('aria-disabled', Boolean(data.enabled));
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong logic: should be data.enabled === false (if not present it means it is enabled too)

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, it is a core property of every widget, it should always exist. Can you give some example to investigate?

Copy link
Contributor

Choose a reason for hiding this comment

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

disabled != enabled

please reread carefully, the logic is inverted here ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

jaja, I see now, . Thanks

@vmiklos
Copy link
Contributor

vmiklos commented Feb 18, 2025

#11193 has to go in first, then please rebase. Sorry about the trouble.

.
Change-Id: Ic71df7415075523c841194902b0f7f1a6177b6b8
Signed-off-by: Henry Castro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

4 participants