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

Attempt to apply aria-labelledby and role attributes by default / Support custom attrs #7

Closed
wants to merge 1 commit into from
Closed

Attempt to apply aria-labelledby and role attributes by default / Support custom attrs #7

wants to merge 1 commit into from

Conversation

BrianSipple
Copy link
Collaborator

@BrianSipple BrianSipple commented Jul 9, 2016

This PR is meant to be a further enhancement after #8.

As this Codepen demonstrates, svg symbols have the potential to offer extra information for screen readers if the proper combination of the aria-labelledby and role attributes are applied.

The changes here update the symbol parsing functionality to attempt to include aria-labelledby and role by default, and while I was at it, I figured it would be even better to also allow for custom attributes to be passed as a config option. The parsing function simply iterates through the list of all the attributes the user wants it to include on the symbol, and applies them if they're found on the original SVG.

@BrianSipple
Copy link
Collaborator Author

#Closed in favor of #13.

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.

1 participant