-
Notifications
You must be signed in to change notification settings - Fork 771
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
base: master
Are you sure you want to change the base?
Conversation
a127670
to
c06b601
Compare
c06b601
to
11d7ae5
Compare
11d7ae5
to
2817587
Compare
@@ -381,6 +381,8 @@ L.Control.JSDialogBuilder = L.Control.extend({ | |||
spinfield.setAttribute('disabled', 'true'); | |||
} | |||
|
|||
spinfield.setAttribute('aria-disabled', Boolean(data.enabled)); |
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.
wrong logic: should be data.enabled === false
(if not present it means it is enabled too)
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.
Hmm, it is a core property of every widget, it should always exist. Can you give some example to investigate?
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.
disabled != enabled
please reread carefully, the logic is inverted here ;)
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.
jaja, I see now, . Thanks
2817587
to
cb6e9a8
Compare
#11193 has to go in first, then please rebase. Sorry about the trouble. |
. Change-Id: Ic71df7415075523c841194902b0f7f1a6177b6b8 Signed-off-by: Henry Castro <[email protected]>
cb6e9a8
to
3a1d3e6
Compare
Change-Id: Ic71df7415075523c841194902b0f7f1a6177b6b8
Signed-off-by: Henry Castro [email protected]