Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Conversation

kyledurand
Copy link
Member

@kyledurand kyledurand commented Jan 10, 2023

Fixes: #8013

Spin link

The cause of this bug was not porting over overflow-x: hidden from the body markup container

Before After

@kyledurand kyledurand changed the title [Modal] Fix scroll bug [Modal] Fix content overflow / scroll bug Jan 10, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 10, 2023

size-limit report 📦

Path Size
polaris-react-cjs 211.68 KB (+0.01% 🔺)
polaris-react-esm 136.77 KB (+0.01% 🔺)
polaris-react-esnext 192.04 KB (+0.01% 🔺)
polaris-react-css 41.77 KB (0%)


const scrollContainerMarkup = noScroll ? (
<Box width="100%">{body}</Box>
<Box width="100%" overflowX="hidden">
Copy link
Member Author

Choose a reason for hiding this comment

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

@kyledurand kyledurand force-pushed the modal_fix-no-scroll-behavior branch from b5c7971 to 3e344ec Compare January 10, 2023 21:07
@kyledurand kyledurand requested review from chazdean and yurm04 January 10, 2023 21:12
@kyledurand kyledurand self-assigned this Jan 10, 2023
@kyledurand
Copy link
Member Author

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @kyledurand! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20230110211626
yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230110211626
yarn add @shopify/polaris@0.0.0-snapshot-release-20230110211626
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230110211626

Copy link
Contributor

@yurm04 yurm04 left a comment

Choose a reason for hiding this comment

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

🚢 tested in a couple of spots with long form modals and looks good! thanks for jumping on this quickly @kyledurand

@sarahill sarahill self-requested a review January 11, 2023 16:11
Copy link
Contributor

@sarahill sarahill left a comment

Choose a reason for hiding this comment

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

I'm seeing one thing with the alignment of the buttons in the footer when overflow scroll is present. They're sitting a little lower and bleeding into the bottom padding. I'm only seeing this when there's overflow content.

Orders > Create order
Click on "Add custom item" or "Change market" and reduce height of browser if needed to force overflow scrolling

image

@kyledurand kyledurand merged commit 2620b0a into main Jan 11, 2023
@kyledurand kyledurand deleted the modal_fix-no-scroll-behavior branch January 11, 2023 18:02
kyledurand pushed a commit that referenced this pull request Jan 11, 2023
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.


# Releases
## @shopify/polaris@10.19.0

### Minor Changes

- [#7817](#7817)
[`6c310101d`](6c31010)
Thanks [@henryyi](https://github.com/henryyi)! - Added
`secondaryActions` prop in Navigation.Item to support up to two actions

### Patch Changes

- [#8018](#8018)
[`2620b0a20`](2620b0a)
Thanks [@kyledurand](https://github.com/kyledurand)! - Fixed modal
scroll bug

## @shopify/stylelint-polaris@5.1.0

### Minor Changes

- [#7993](#7993)
[`128f147d1`](128f147)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Created
`polaris/declaration-property-value-disallowed-list` rule to ignore
failures in `@font-face` at-rules

### Patch Changes

- [#8006](#8006)
[`6404b1638`](6404b16)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! -
Temporarily disabled `border-radius-base` error

## @shopify/plugin-polaris@0.0.26

### Patch Changes

- Updated dependencies
\[[`fad3809ef`](fad3809),
[`56b0bc2dc`](56b0bc2)]:
    -   @shopify/polaris-migrator@0.10.3

## @shopify/polaris-migrator@0.10.3

### Patch Changes

- [#7997](#7997)
[`fad3809ef`](fad3809)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Updated
`styles-tokenize-font` to ignore `@font-face` at-rules


- [#7783](#7783)
[`56b0bc2dc`](56b0bc2)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Improve
robustness of the `react-replace-text-components` migration

- Updated dependencies
\[[`6404b1638`](6404b16),
[`128f147d1`](128f147)]:
    -   @shopify/stylelint-polaris@5.1.0

## polaris.shopify.com@0.28.3

### Patch Changes

- Updated dependencies
\[[`2620b0a20`](2620b0a),
[`6c310101d`](6c31010)]:
    -   @shopify/polaris@10.19.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kyledurand added a commit that referenced this pull request Jan 17, 2023
### WHY are these changes introduced?

Fixes
#8018 (review)

[Spin
link](https://admin.web.web-vtxq.kyle-durand.us.spin.dev/store/shop1)

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [ ] Updated the component's `README.md` with documentation changes
- [ ] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
@gwyneplaine gwyneplaine mentioned this pull request Feb 14, 2023
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
Fixes: Shopify#8013

[Spin
link](https://admin.web.billing-kmux.kyle-durand.us.spin.dev/store/shop1)

The cause of this bug was not porting over `overflow-x: hidden` from the
body markup container

Before | After
---|---
![](https://screenshot.click/10-32-qzmr9-qfziv.png) |
![](https://screenshot.click/10-32-lbwb7-4b4z2.png)
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
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.


# Releases
## @shopify/polaris@10.19.0

### Minor Changes

- [Shopify#7817](Shopify#7817)
[`6c310101d`](Shopify@6c31010)
Thanks [@henryyi](https://github.com/henryyi)! - Added
`secondaryActions` prop in Navigation.Item to support up to two actions

### Patch Changes

- [Shopify#8018](Shopify#8018)
[`2620b0a20`](Shopify@2620b0a)
Thanks [@kyledurand](https://github.com/kyledurand)! - Fixed modal
scroll bug

## @shopify/stylelint-polaris@5.1.0

### Minor Changes

- [Shopify#7993](Shopify#7993)
[`128f147d1`](Shopify@128f147)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Created
`polaris/declaration-property-value-disallowed-list` rule to ignore
failures in `@font-face` at-rules

### Patch Changes

- [Shopify#8006](Shopify#8006)
[`6404b1638`](Shopify@6404b16)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! -
Temporarily disabled `border-radius-base` error

## @shopify/plugin-polaris@0.0.26

### Patch Changes

- Updated dependencies
\[[`fad3809ef`](Shopify@fad3809),
[`56b0bc2dc`](Shopify@56b0bc2)]:
    -   @shopify/polaris-migrator@0.10.3

## @shopify/polaris-migrator@0.10.3

### Patch Changes

- [Shopify#7997](Shopify#7997)
[`fad3809ef`](Shopify@fad3809)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Updated
`styles-tokenize-font` to ignore `@font-face` at-rules


- [Shopify#7783](Shopify#7783)
[`56b0bc2dc`](Shopify@56b0bc2)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Improve
robustness of the `react-replace-text-components` migration

- Updated dependencies
\[[`6404b1638`](Shopify@6404b16),
[`128f147d1`](Shopify@128f147)]:
    -   @shopify/stylelint-polaris@5.1.0

## polaris.shopify.com@0.28.3

### Patch Changes

- Updated dependencies
\[[`2620b0a20`](Shopify@2620b0a),
[`6c310101d`](Shopify@6c31010)]:
    -   @shopify/polaris@10.19.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Long form modals are broken
3 participants