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

[SvgIcon] Add aria-hidden #6829

Merged
merged 1 commit into from
May 11, 2017
Merged

[SvgIcon] Add aria-hidden #6829

merged 1 commit into from
May 11, 2017

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented May 9, 2017

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

As requested in 80% of the situations, I'm adding it as default. See

@@ -39,6 +39,7 @@ export default function SvgIcon(props, context) {
<svg
className={className}
viewBox={viewBox}
aria-hidden="true"
Copy link
Member

Choose a reason for hiding this comment

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

Should we instead be adding the icon name as its title? What if this was in an Icon button? (Or is it up to the user to meaningfully label the button?)

https://www.w3.org/TR/SVG-access/#Equivalent

Copy link
Member Author

Choose a reason for hiding this comment

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

That's 20% of the use case following my previous 80%. I agree we miss a title property!

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I missed the link in your description. I think this is best for now.

@muibot muibot added PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI PR: Needs Review and removed PR: Needs Review labels May 11, 2017
@oliviertassinari oliviertassinari removed the PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI label May 11, 2017
@oliviertassinari oliviertassinari merged commit efd9d27 into mui:next May 11, 2017
@oliviertassinari oliviertassinari deleted the icons-accessibility branch May 11, 2017 22:01
@oliviertassinari oliviertassinari added the component: SvgIcon The React component. label Apr 22, 2021
@oliviertassinari oliviertassinari changed the title [Icon] Add aria-hidden [SvgIcon] Add aria-hidden Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y component: SvgIcon The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants