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

Using an icon for a button #427

Open
sarasuri opened this issue Feb 27, 2024 · 0 comments
Open

Using an icon for a button #427

sarasuri opened this issue Feb 27, 2024 · 0 comments

Comments

@sarasuri
Copy link

sarasuri commented Feb 27, 2024

Hi

I have a question on icon buttons. The following resource indicates that text must accompany the icon to ensure accessibility requirements are met. https://wet-boew.github.io/wet-boew-styleguide/design/icons-en.html

Would that apply to an icon button with accessible name provided via the "aria-label" attribute? For example, please see code snippet below. Is it considered as meeting accessible requirements without accompanying text?

<button type="button" title="Close" aria-label="Close"><span class="fa fa-times" aria-hidden="true"></span></button>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant