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

aria-label not working on IconButton #14702

Closed
2 tasks done
jakesylvestre opened this issue Feb 28, 2019 · 4 comments
Closed
2 tasks done

aria-label not working on IconButton #14702

jakesylvestre opened this issue Feb 28, 2019 · 4 comments
Labels
accessibility a11y component: icon button This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@jakesylvestre
Copy link

  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

When hovering over an IconButton I should see an aria-label

Current Behavior 😯

No aria-label is shown

Steps to Reproduce 🕹

This bug is present in the material-ui docs. Go to the buttons demo hover over the trash icon and note that no label is shown. I've attached a video (gif format) of this behavior for convenience.

button react component - material-ui

@eps1lon
Copy link
Member

eps1lon commented Feb 28, 2019

When hovering over an IconButton I should see an aria-label

How did you come to that conclusion? Was this the case in a previous version?

aria-label is usually used for assistive technology. Maybe you meant title?

@eps1lon eps1lon added component: icon button This is the name of the generic UI component, not the React module! accessibility a11y status: waiting for author Issue with insufficient information labels Feb 28, 2019
@eps1lon eps1lon closed this as completed Mar 5, 2019
@anitba
Copy link

anitba commented Apr 27, 2023

But is there a way to add an aria-label to an IconButton?

@Ant1ne
Copy link

Ant1ne commented Nov 24, 2023

Can we have an update on the question asked by @anitba?

@kallewesterling
Copy link

@eps1lon Also interested in hearing about how to add assistive technology on MUI components without breaking my TypeScript code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y component: icon button This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

5 participants