Skip to content

New rule proposal around SVGs #733

Open
@ematipico

Description

@ematipico

Hi! As suggested by @ljharb (rome/tools#556 (comment)), I wanted to open an issue to propose few new rules around accessibility for SVGs.

More details can be found here inside the rome project: rome/tools#556

  • svg-has-title: maybe the name should be reviewed because it's not just svg but also other elements that can be considered images (e.g. ellipse). A SVG image should always have a <title> as direct child;
  • svg-has-aria-label: if an SVG has role='img', it should also have a aria-label (source);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions