Exercise 11: Setting up a modal - finished

List of all exercises

Our aims are:

  1. Set the modal with a role so it is announced correctly to assistive technologies when triggered.
  2. Provide the modal with an accessible name and description, so that these are also announced when the modal is triggered.
  3. Listen to the modal using a screen reader.