-
Notifications
You must be signed in to change notification settings - Fork 94
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
[BITV]: Remove unneeded roles menuitem
and menu
#5216
Comments
Dear @juliushaertl could you please explain for us a difference between Does it means if But what does it mean for button "Undo"? "Undo" button can't be active. At the moment there are 3 "states" of buttons: |
The problem here is that boolean property We have buttons:
Having boolean
The question is, is there a way to determine that a button is a toggle button and has an active state? If there is no, we can add it to the action description. |
I guess this is |
Took me a bit to refresh my overview on the menu code parts. I think we can add an a property for what type a button is to the entry list and set the pressed state only for those that are toggle buttons. From my overview we'd then need to:
I can check and push a commit for the first two parts if you want. |
Ah, yes, we can just use that instead of an additional one |
Yeah, I also don't have any ideas how we can show it...
I think if any of these attributes are needed in menus, it should be done on the But I need to re-check it because we have different recommendations on different accessibility report issues 🙈 |
@ShGKme Just checked out your recent push on the draft pr and that seems to work fine for the regular and toggle buttons. Can I be of any further help investigating on the menu trigger buttons? To summarize we have two "types" of menus there.
|
Thanks @juliushaertl for help! |
clarification needed: #3911 (comment) |
Unfortunately, it is not possible to make a button at the same time a toggle button (with the "pressed" state) and menu opening button (with the "expanded" state). Correct solution could be to make this button not an opening sub-menu but a custom select. However, this would be a complex change of The only simple solution I've added is to provide this information via
I've pushed the fix to the PR. @juliushaertl @JuliaKirschenheuter what do you think? |
I agree, let's move this way first and other improvements can be done afterwards |
Important
For QA, please just check that PR is merged to stable28
In most toolbar buttons wrong roles have been assigned. To correct the roles please pay attention on:
role="menuitem"
NcActions
componentaria-selected="true"
but should have insteadaria-pressed="true"
andaria-pressed="false"
on unpressed state (requires@nextcloud/vue
update) (note thataria-pressed
can't be on adiv class="entry-action action-item"
)aria-haspopup
(may require@nextcloud/vue
update)The text was updated successfully, but these errors were encountered: