Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Conversation

@leMaur
Copy link
Contributor

@leMaur leMaur commented Sep 24, 2021

Summary

https://app.clickup.com/t/1je5e0d

When a modal is opened, the first focusable element should receive the focus. Tabbing should focus the next sibling and should keep the focus on elements in the modal.
When a modal is closed, the focus should come back to the element used to trigger the modal.
Saying that, this PR improves the modal component to take care of those behaviors.

Checklist

  • I checked my UI changes against the design and there are no notable differences
  • I checked my UI changes for any responsiveness issues
  • I checked my (code) changes for obvious issues, debug statements and commented code
  • I provided a screenshot of my changes to the component (if applicable)
  • I regenerated the icons.html file and checked if my newly added icon is shown correctly (if necessary)
  • I added an explanation on how to use the component to the readme (if necessary)
  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@alexbarnsley alexbarnsley self-assigned this Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants