Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented May 3, 2023

Summary

Currently the default aria-label of NcActions hides the menu text, this is fixed by replacing the aria-label with the menu text.

Note: I first thought about removing the aria label and let the browser fallback to the text, but the property requires a string so :aria-label="null" works but a future change might replace all falsy values with the default Actions text.

Checklist

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
Copy link
Contributor Author

susnux commented May 3, 2023

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

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

Nice !
Can you add some before/after screenshots?
I could not reproduce the overlapping of the aria-label with the text.

@susnux susnux added this to the Nextcloud 27 milestone May 4, 2023
@susnux
Copy link
Contributor Author

susnux commented May 4, 2023

Nice ! Can you add some before/after screenshots? I could not reproduce the overlapping of the aria-label with the text.

There is no visual overlapping, but the aria-label is overriding the inner text so the visual label does not appear in the names:

before after
before the label only says ACTIONS after the label is the same as the visual one

@susnux susnux merged commit 5a52476 into master May 4, 2023
@susnux susnux deleted the fix/weather-menu-aria branch May 4, 2023 08:55
@susnux
Copy link
Contributor Author

susnux commented May 4, 2023

/backport to stable26

@backportbot-nextcloud
Copy link

The backport to stable26 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable26
git pull origin/stable26

# Create the new backport branch
git checkout -b fix/foo-stable26

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable26

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

6 participants