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-lock caused by ModalProvider #2412

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

connor-baer
Copy link
Member

Purpose

Due to potential conditional re-rendering in ze-dashboard, the cui-modal-open class might still be present.
It might cause the issue with react-modal, described here.

Approach and changes

  • Clean up the react-modal attributes when the all modals are closed or the ModalProvider component is unmounted

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@connor-baer connor-baer added the 🐞 bug Something isn't working as it should label Jan 29, 2024
@connor-baer connor-baer requested a review from a team as a code owner January 29, 2024 14:12
Copy link

changeset-bot bot commented Jan 29, 2024

🦋 Changeset detected

Latest commit: ba5d252

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sumup/circuit-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oss-circuit-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2024 2:12pm

Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0960e67) 96.76% compared to head (ba5d252) 96.76%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2412   +/-   ##
=======================================
  Coverage   96.76%   96.76%           
=======================================
  Files         227      227           
  Lines       18873    18878    +5     
  Branches     1178     1180    +2     
=======================================
+ Hits        18262    18267    +5     
  Misses        598      598           
  Partials       13       13           
Files Coverage Δ
...ircuit-ui/components/ModalContext/ModalContext.tsx 94.76% <100.00%> (+0.14%) ⬆️

@connor-baer connor-baer merged commit 86a15c8 into main Jan 29, 2024
13 of 14 checks passed
@connor-baer connor-baer deleted the bugfix/clean-up-modal-wrapper-v8 branch January 29, 2024 14:15
@connor-baer connor-baer mentioned this pull request Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working as it should 🗂 circuit-ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants