-
Notifications
You must be signed in to change notification settings - Fork 174
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: move the Modal Content inside the Overlay component and change the background rule of the Overlay #1753
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simotae14
added
pr: fix
This PR is fixing a bug
source: design-system
relates to design-system package
labels
Jun 26, 2024
🦋 Changeset detectedLatest commit: fb6eec4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +120 B (+0.04%) Total Size: 289 kB
ℹ️ View Unchanged
|
remidej
previously approved these changes
Jun 26, 2024
remidej
approved these changes
Jun 26, 2024
simotae14
added a commit
that referenced
this pull request
Jul 1, 2024
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ # Releases ## @strapi/[email protected] ### Minor Changes - [#1748](#1748) [`61936d6`](61936d6) Thanks [@madhurisandbhor](https://github.com/madhurisandbhor)! - chore: standardise forwardRefs across components ### Patch Changes - [#1738](#1738) [`8a87483`](8a87483) Thanks [@joshuaellis](https://github.com/joshuaellis)! - fix(IconButton): sizing was wrong compared to other buttons - [#1750](#1750) [`d89c9c3`](d89c9c3) Thanks [@madhurisandbhor](https://github.com/madhurisandbhor)! - Fixed: Link doesn't show the hover color - [#1753](#1753) [`9df216b`](9df216b) Thanks [@simotae14](https://github.com/simotae14)! - fixed Modal Content scroll issues - [#1752](#1752) [`90da62e`](90da62e) Thanks [@remidej](https://github.com/remidej)! - fixed SubNavHeader not applying space between label and search icon - [#1749](#1749) [`c7c5ad6`](c7c5ad6) Thanks [@madhurisandbhor](https://github.com/madhurisandbhor)! - fix: add click action on tag icon instead of on tag itself - Updated dependencies \[]: - @strapi/[email protected] ## @strapi/[email protected] ## @strapi/[email protected]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does it do?
It fixes the wrong behaviour in the Modal Content component, the children components are not scrollable, I moved the ContentImpl as a child of the Overlay component and I changed the background rule in the Overlay style to don't affect the opacity of the Overlay children
Why is it needed?
Because otherwise scrolling is not working for example in dropdown used in the Modal body.
Here an example of the issue
Registrazione.schermo.2024-06-26.alle.11.09.42.mov
and here the solution
Registrazione.schermo.2024-06-26.alle.11.11.06.mov
How to test it?
You can test the solution directly in the Modal DS storybook https://64f9707bb212b1f1332bfd97-ehiswajggi.chromatic.com/?path=/story/components-modal--base
Related issue(s)/PR(s)
fixes strapi/strapi#20599