-
-
Notifications
You must be signed in to change notification settings - Fork 373
Closed as not planned
Closed as not planned
Copy link
Labels
IconsRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)
Description
As far as I can see, using a title=""
attribute on SVG's is discouraged, see e.g. https://stackoverflow.com/a/4756461/1668200 or https://css-tricks.com/svg-title-vs-html-title-attribute/
However, you're explicitly mentioning such a title
attribute at https://symfony.com/bundles/ux-icons/current/index.html#accessibility:
... automatically to icons not having at least one of the following attributes:
aria-label
,aria-labelledby
ortitle
.
(The functionality was introduced in #1690)
The recommended way seems to be to add a <title>
element as first child of the SVG:
<svg...>
<title>My cat</title>
</svg>
So I'm suggesting to integrate an easy way to add such a <title>
.
Metadata
Metadata
Assignees
Labels
IconsRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)