Skip to content

Add <title> or <text> Tags to SVG, for Accessibility #38

@4tuw2tuv0

Description

@4tuw2tuv0

I may've just missed how to do so but is there a way to add these as HTML tags to the SVG? title attributes aren't recognized by screen readers and the recommended method for accessible icons is to put a <title> or <text> tag within the SVG.

It'd be super useful to be able to do something like <Heroicons.gear solid title="A gear" /> and <title>A gear</title> would show up within the rendered SVG.

Attributes such as aria-label aren't a problem as they can, already, be added like any other attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions