kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
83 stars 22 forks source link

Modal: Move focus to overlay when modal is opened #3325

Closed RasmusKjeldgaard closed 7 months ago

RasmusKjeldgaard commented 7 months ago

Which issue does this PR close?

This PR closes #3237

What is the new behavior?

Modal overlay is now focussed once a modal is opened, so focus is trapped within the modal until it is closed.

Does this PR introduce a breaking change?

Are there any additional context?

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Reminders

Review

When the pull request has been approved it will be merged to develop by Team Kirby.