-
Notifications
You must be signed in to change notification settings - Fork 87
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
menu, menu-item: improve JAWS readability #1578
Conversation
@aristov need your review |
@aristov ping. Need your review here |
2nd item of #1508 description is not satisfied. |
@aristov I tried to prevent it by |
@aristov tests are failed because of |
Ok, use |
Don't forget this. Try to use |
'menuitem', | ||
attrs = { | ||
role : role, | ||
'aria-disabled' : mods.disabled, |
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.
Omit aria-disabled="false"
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.
But if block will be without disabled
mod 'aria-disabled'
attribute will not be added. So, this attribute will be added just in case when disabled
mod will be true
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.
If you talking about _disabled_false
case — we don't need to support it. See documentation for details
@aristov but when menu is focused no one menu-item has |
@sipayRT no |
@aristov set id to first menu item on menu hover. it looks better now |
4ff481d
to
3a8fc8a
Compare
@aristov this branch was rebased and updated. Need your review |
JAWS doesn't speak |
@aristov I just checked it one more time - on TAB event (when menu is focused) JAWS says "menu, item one not checked" and then "to move ... bla bla bla". Maybe you should clean your caches |
Remove |
Clear |
Try to generate id for each menu-item |
@aristov check now, plz |
@@ -6,7 +6,7 @@ block('menu').elem('group')( | |||
}), | |||
content()(function() { | |||
return [ | |||
{ elem : 'group-title', content : this.ctx.title }, | |||
{ elem : 'group-title', attrs : { 'aria-hidden' : true }, content : this.ctx.title }, |
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.
Let's wrap this long line.
I've checked the second point of #1508:
I have no idea why it works so and how to fix it. Besides, @sipayRT can not reproduce this. We assume that this is a JAWS internal bug. I think we should leave the solution, based on the permanent Now all points of issue are satisfied, but there are some notes in the code changes. Fix it and ping me again, please. |
1e58040
to
c56856d
Compare
c56856d
to
3437670
Compare
@aristov All your notes were fixed. |
menu, menu-item: improve JAWS readability
Closes #1508 #1458