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: move the Modal Content inside the Overlay component and change the background rule of the Overlay #1753

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

simotae14
Copy link
Contributor

@simotae14 simotae14 commented Jun 26, 2024

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

@simotae14 simotae14 added pr: fix This PR is fixing a bug source: design-system relates to design-system package labels Jun 26, 2024
@simotae14 simotae14 self-assigned this Jun 26, 2024
Copy link

changeset-bot bot commented Jun 26, 2024

🦋 Changeset detected

Latest commit: fb6eec4

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

This PR includes changesets to release 3 packages
Name Type
@strapi/design-system Patch
@strapi/icons Patch
@strapi/ui-primitives 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 Jun 26, 2024

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

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 10:56am

Copy link
Contributor

github-actions bot commented Jun 26, 2024

Size Change: +120 B (+0.04%)

Total Size: 289 kB

Filename Size Change
packages/design-system/dist/index.js 95.1 kB +60 B (+0.06%)
packages/design-system/dist/index.mjs 94 kB +60 B (+0.06%)
ℹ️ View Unchanged
Filename Size
packages/icons/dist/index.js 21.9 kB
packages/icons/dist/index.mjs 21.6 kB
packages/icons/dist/symbols-index.js 11.8 kB
packages/icons/dist/symbols-index.mjs 11.6 kB
packages/primitives/dist/index.js 16.8 kB
packages/primitives/dist/index.mjs 16.3 kB

compressed-size-action

remidej
remidej previously approved these changes Jun 26, 2024
.changeset/short-pets-attack.md Outdated Show resolved Hide resolved
@simotae14 simotae14 merged commit ab0aaa6 into main Jun 26, 2024
11 checks passed
@simotae14 simotae14 deleted the fix/modal-scroll-issue branch June 26, 2024 12:08
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/design-system@2.0.0-rc.7

### 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/ui-primitives@2.0.0-rc.7

## @strapi/icons@2.0.0-rc.7



## @strapi/ui-primitives@2.0.0-rc.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: design-system relates to design-system package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[i18n] Cannot scroll up and down in the locale selection dropdown
2 participants