-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accessible SVG icons: Add title tag inside SVG if the title attribute…
… is set (#245) * Add title tag to SVG's if title attribute is set * Update src/Svg.php * Pass tile directly to the method as param * Better variable name for title element * Update regular expression, consider <svg> may be passed with not attributes. * Svg class tests to ensure aria attribute and title element are added correctly. * Add role as img: WCAG best practice * Update tests to check for role attribute * Update README.md - Add Accessibility section * Update README.md * Include usage example --------- Co-authored-by: Dries Vints <[email protected]> Co-authored-by: Nicky <[email protected]>
- Loading branch information
1 parent
d8ddf96
commit 74275f4
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters