Visitar URL original
WCAG compliance: feather.replace() does not allow adding desc blocks to svgs · Issue #1294 · feathericons/feather · GitHub
Skip to content

WCAG compliance: feather.replace() does not allow adding desc blocks to svgs #1294

Open

Description

@jake-ciliberti

In order to conform to WCAG 2.1, SVGs must be written as:

<svg>
  <desc>example description</desc>
</svg>

or, if the SVG is purely decorative:

<svg aria-hidden="true">
</svg>

https://www.w3.org/wiki/SVG_Accessibility/Authoring#Nested_decription

Currently, using feather.replace() on a document does not have any way to add those elements to the resulting icons.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions