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

dialog should prevent scrolling when open #2542

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

keithamus
Copy link
Member

@keithamus keithamus commented Jan 25, 2024

Authors: Please fill out this form carefully and completely.

Reviewers: By approving this Pull Request you are approving the code change, as well as its deployment and mitigation plans.
Please read this description carefully. If you feel there is anything unclear or missing, please ask for updates.

What are you trying to accomplish?

Another regression from #2496 is that, when open, the background is still scroll-able. (See whatwg/html#7732 for more). Our <modal-dialog> element hacks this by setting overflow:hidden when the dialog is open. This code fell out during #2496, this PR adds similar code back in.

(This is marked skip changeset as it fixes a regression in the pre-release #2492)

Screenshots

Integration

List the issues that this change affects.

Closes # (type the GitHub issue number after #)

Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.
  • Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
  • High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

What approach did you choose and why?

Anything you want to highlight for special attention from reviewers?

Accessibility

  • Fixes axe scan violation - This change fixes an existing axe scan violation.
  • No new axe scan violation - This change does not introduce any new axe scan violations.
  • New axe violation - This change introduces a new axe scan violation. Please describe why the violation cannot be resolved below.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@keithamus keithamus requested a review from a team as a code owner January 25, 2024 11:19
@keithamus keithamus requested review from a team, lukasoppermann and camertron January 25, 2024 11:19

This comment was marked as outdated.

@keithamus keithamus added the skip changeset Pull requests that don't change the library output label Jan 25, 2024
Copy link
Contributor

github-actions bot commented Jan 25, 2024

⚠️ Visual differences found

Our visual comparison tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review visual differences

@keithamus keithamus force-pushed the dialog-should-prevent-scrolling-when-open branch from 522a85b to 45fb046 Compare January 25, 2024 14:15
@keithamus keithamus merged commit 4b2200e into main Jan 25, 2024
29 of 30 checks passed
@keithamus keithamus deleted the dialog-should-prevent-scrolling-when-open branch January 25, 2024 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset Pull requests that don't change the library output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants