Adds a lint rule to ensure SVGs have an accessible name by checking for a title element as the first descendant of the <svg> element or an aria-label or aria-labelledby. It also checks if the element is presentational, in which an error won't be thrown.
Relates to https://github.com/github/accessibility/issues/3972.
Description
Adds a lint rule to ensure SVGs have an accessible name by checking for a title element as the first descendant of the
<svg>
element or anaria-label
oraria-labelledby
. It also checks if the element is presentational, in which an error won't be thrown.