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
2 changes: 2 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Use [the changelog guidelines](/documentation/Versioning%20and%20changelog.md) t

### Bug fixes

- Centered full width `Popover` on small viewports ([#4114](https://github.com/Shopify/polaris-react/pull/4114))

### Documentation

### Development workflow
Expand Down
5 changes: 2 additions & 3 deletions src/components/Popover/Popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ $vertical-motion-offset: rem(-5px);
}

.fullWidth {
margin: 0;
margin-top: $visible-portion-of-arrow;
margin: $visible-portion-of-arrow auto 0 auto;

.Content {
max-width: none;
Expand All @@ -54,7 +53,7 @@ $vertical-motion-offset: rem(-5px);
margin: spacing() spacing(tight) $visible-portion-of-arrow;

&.fullWidth {
margin: 0 0 $visible-portion-of-arrow;
margin: 0 auto $visible-portion-of-arrow auto;
}
}

Expand Down