grommet/grommet
View on GitHubLayer on top on Layer allows navigation in the backgrount
Open
#6060 opened on Apr 11, 2022
bughelp wanted
Description
Expected Behavior
If the user clicks on the first modal the navigation on the background (Sidebar) shouldn't happen. And if the user opens the second modal, the navigation on the first modal (that's still open) should happen either.
Actual Behavior
When the user clicks on the second modal it allows them to navigate on the background (first modal).
URL, screen shot, or Codepen exhibiting the issue
Here's a sandbox I created, open on full screen to see the issue: https://codesandbox.io/s/grommets-layer-tab-o0ndp1
Steps to Reproduce
- Open the first modal using the first button on the sidebar.
- Open the second modal using the button on the first modal.
- Navigate using the "Tab" key on the keyboard.
Your Environment
- Grommet version: 2.19.0
- Browser Name and version: Brave
- Operating System and version (desktop or mobile): Windows and Mac.