Do inline SVGs still need to meet accessibility requirements?

Yes. All SVG images, whether inline or file-based, must meet WCAG 2.1 AA accessibility requirements when used as meaningful content.

Decorative SVGs

  • Add aria-hidden="true" to hide from assistive technology
  • Ensure they do not convey information users need

Meaningful SVGs

  • Include a <title> element to provide an accessible name
  • Use role="img" when appropriate
  • Ensure sufficient contrast for any text or shapes within the SVG

Note: The Digital Asset Inventory does not track inline SVGs, but your accessibility review process should still include them.