Skip to content
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

Hiding box menu item button text #211

Open
swashbuck opened this issue Mar 11, 2025 · 0 comments
Open

Hiding box menu item button text #211

swashbuck opened this issue Mar 11, 2025 · 0 comments

Comments

@swashbuck
Copy link
Contributor

swashbuck commented Mar 11, 2025

Subject of the enhancement

Currently, it is difficult to remove the "view" button text and still have the text as part of the aria label.

Use case

Sometimes, we will replace the text with an arrow icon or something similar. However, we still want the aria label to read "View Topic 1".

Image

Possible solutions

  1. Wrap the text in .boxmenu-item__button with a span tag that can be hidden with CSS in a custom theme.
  2. Add a new property for linkTextAria so that the aria label can be set independently of the linkText value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant