Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

- Fixed `TrapFocus` stealing focus from other `TrapFocus`'s ([#2681](https://github.com/Shopify/polaris-react/pull/2681))
- Fixed focus state color on monochrome `Buttons` ([#2684](https://github.com/Shopify/polaris-react/pull/2684))
- Fixed container's width on `Modal` ([#2692](https://github.com/Shopify/polaris-react/pull/2692))

### Documentation

Expand Down
4 changes: 2 additions & 2 deletions src/components/Modal/components/Dialog/Dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $large-width: rem(980px);
left: 0;
display: flex;
flex-direction: column;
width: 100vw;
width: 100%;
max-height: calc(100vh - #{$vertical-spacing});
background: var(--p-surface, color('white'));
box-shadow: var(--p-modal-shadow, shadow(layer));
Expand Down Expand Up @@ -64,7 +64,7 @@ $large-width: rem(980px);

&.sizeLarge {
@include breakpoint-after(layout-width(page-with-nav)) {
max-width: calc(100vw - #{$horizontal-spacing});
max-width: calc(100% - #{$horizontal-spacing});
}

@include breakpoint-after($large-width + $horizontal-spacing) {
Expand Down