Skip to content

Improve ARIA attributes #350

@igordanchenko

Description

@igordanchenko

Is your feature request related to a problem? Please describe.

Previous discussions:

Describe the solution you'd like

Implement ARIA attributes according to WAI ARIA recommendations:

  1. Set the following attributes on the portal node:
  • role="dialog"
  • aria-modal="true"
  • aria-live="polite" 1
  • aria-roledescription="lightbox"
  1. Set the following attributes on the root node in inline (carousel) mode:
  • role="region"
  • aria-live="polite" 1
  • aria-roledescription="carousel"
  1. Set the following attributes on individual slides:
  • role="region" 2
  • aria-roledescription="slide"

1 Will probably need to switch aria-live to "off" when Slideshow plugin starts playing slides, but postponing for now.

2 Using region role on individual slides instead of group because otherwise VoiceOver stops announcing slide title and description.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreleasedImplemented and released

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions