You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove labelled-by attribute from SVG when title attribute is passed (#249)
* 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
* Remove aria-labelledby attribute
* Update tests: Remove checks for id and aria-labelledby
* Update docs: Examples without aria-labelledby
---------
Co-authored-by: Dries Vints <[email protected]>
Co-authored-by: Nicky <[email protected]>
0 commit comments