Skip to content

Add aria-hidden and role to SVGs.#1032

Merged
jasmussen merged 1 commit intomasterfrom
update/dashicons-aria
Jun 6, 2017
Merged

Add aria-hidden and role to SVGs.#1032
jasmussen merged 1 commit intomasterfrom
update/dashicons-aria

Conversation

@jasmussen
Copy link
Contributor

@jasmussen jasmussen commented Jun 6, 2017

This PR adds aria-hidden="true" and role="img" to the SVG files inside the dashicons component, addressing feedback here: #1012 (comment)

Upstream PR: WordPress/dashicons#194

Test instructions:

  • Build the plugin, then using the web inspector verify that the above mentioned attributes are present on the SVG icons.

CC: @afercia

This PR adds aria-hidden="true" and role="img" to the SVG files inside the dashicons component, addressing feedback here: #1012 (comment)

Upstream PR: WordPress/dashicons#194

CC: @afercia
@jasmussen jasmussen self-assigned this Jun 6, 2017
@jasmussen jasmussen requested a review from aduth June 6, 2017 07:40
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

Did you try removing the ="true" from the aria-hidden="true"? I think React is smart enough to add it.

Anyway, LGTM 👍

@jasmussen
Copy link
Contributor Author

Nice, thank you! I did not try and remove the true, but I did try ariaHidden presuming no dashes in react components. Anyway merging for now, thanks :)

@jasmussen jasmussen merged commit adf7d8d into master Jun 6, 2017
@jasmussen jasmussen deleted the update/dashicons-aria branch June 6, 2017 08:40
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

Successfully merging this pull request may close these issues.

2 participants