Skip to content

Commit

Permalink
[Frame] Fixed main override class (#11881)
Browse files Browse the repository at this point in the history
### WHY are these changes introduced?

|Before|After|
|-|-|
|<img width="367" alt="Screenshot 2024-04-10 at 10 39 29 PM"
src="https://github.com/Shopify/polaris/assets/20652326/98aa1299-7c24-4fe9-9b6b-693c8339bf03">|<img
width="352" alt="Screenshot 2024-04-10 at 10 39 59 PM"
src="https://github.com/Shopify/polaris/assets/20652326/be7a6289-ae69-4c81-bc93-9af5d9f75fcd">|

### WHAT is this pull request doing?

When merging the classes in [this
PR](#11846) and [this
commit](13e964c)
I missed the removal of the `max-width` class in the overrides. This was
causing a space between the scrollbar and the frame container.
  • Loading branch information
sophschneider committed Apr 11, 2024
1 parent eb15674 commit c96ff56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-ants-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

Fixed Frame feature override class to get proper max-width for main content.
4 changes: 4 additions & 0 deletions polaris-react/src/components/Frame/Frame.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@
height: 100vh;
overflow: hidden;

@media (--p-breakpoints-sm-up) {
max-width: unset;
}

.hasTopBar & {
/* stylelint-disable-next-line -- polaris custom global property */
margin-top: var(--pg-top-bar-height);
Expand Down

0 comments on commit c96ff56

Please sign in to comment.