-
Notifications
You must be signed in to change notification settings - Fork 93
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
Use proper default actions aria label in NcListItem
#3714
Conversation
I think this is on purpose for accessibility to not have multiple actions with the same aria label |
Well, every action has this label unless you overwrite it explicitly. So there are multiple actions with this label on the same page already. Not sure what's the benefit of setting an empty aria-label for some actions, but not all (besides triggering a warning about it 🙈). |
Then the fix would be to remove the default aria-label on the actions that have a one, no ? |
That would mean making the aria-label prop required, otherwise the |
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.
Seems fine to me :)
What do you think @JuliaKirschenheuter?
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
f8789c2
to
cfef1a7
Compare
NcListItem
NcListItem
/l10n-update |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
We currently overwrite the
aria-label
of theNcActions
component used in theNcListItem
component with an empty string, which leads to aYou need to fill either the text or the ariaLabel props in the button component.
triggered byNcListItem
by default. This PR sets the default aria-label inNcListItem
to the same value as used inNcActions
.