OData / odataorg.github.io

Staging site and collaboration repository for http://www.odata.org
MIT License
63 stars 101 forks source link

Focus on modal button when a modal opens #213

Closed ElizabethOkerio closed 4 years ago

ElizabethOkerio commented 4 years ago

Focus gets lost on all controls in a modal window when a modal window opens on this page https://www.odata.org/getting-started/understand-odata-in-6-steps/. This PR fixes this issue. That is focus is maintained on a close-modal button control when a modal window opens.

Repro Steps: ​​​ 1)Hit the URL "https://www.odata.org/" to open Odata website​ 2)Tab till 'Developers' link and press enter​ 3)Tab till 'Getting Started' option and press enter​ 4)Tab till 'Understand OData in 6 steps' link and press enter​ 5)Tab till 'View the response' button and press enter​ 6)Verify Focus is visible on any control or not after the 'Close' button in 'Response' popup​ ​ ​Actual Result: ​​​ Focus is not visible on any control(focus is lost) after the 'Close' button and one extra keyboard stroke is taking to reach to the close button symbol present in the top of the popup ​ Expected Result:​ Focus should be visible on next control (close button symbol )with in the popup, focus shouldn't be lost after the 'Close' button​.