Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/scroll behind modals #610

Merged

Conversation

Adamik10
Copy link
Contributor

@Adamik10 Adamik10 commented Oct 17, 2023

Link to issue

https://reload.atlassian.net/browse/DDFLSBP-81

Description

This PR disables scrolling on the body element as long as any modals are open.
We also make sure that modals' z-index is higher than header's so that modals don't get obstructed.

Screenshot of the result

n/a

Checklist

  • My complies with our coding guidelines.
  • My code passes our static analysis suite. If not then I have added a comment explaining why this change should be exempt from the code standards and process.
  • My code passes our continuous integration process. If not then I have added a comment explaining why this change should be exempt from the code standards and process.

Additional comments or questions

n/a

@Adamik10 Adamik10 changed the title Disable background scrolling while any modal is open Fix/scroll behind modals Oct 18, 2023
Before, the header was obstructing modals on mobile, and it wasn't
possible to close them.
Copy link
Contributor

@spaceo spaceo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Adamik10 Adamik10 merged commit 2a05867 into danskernesdigitalebibliotek:develop Oct 31, 2023
10 checks passed
@Adamik10 Adamik10 deleted the fix/scroll-behind-modals branch October 31, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants