Skip to content

Commit d90d53d

Browse files
author
Solona Armstrong
authored
Merge pull request #2195 from Shopify/stack-safari
[Stack] Fix spacing bug in Safari
2 parents bd354f5 + ab23144 commit d90d53d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

UNRELEASED.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f
2424
- Fixed the bottom margin of elements inside `Page` being ignored in some browsers ([#2142](https://github.com/Shopify/polaris-react/pull/2142))
2525
- Added required `url` prop to `breadcrumbs` in `Page` component examples ([#2182](https://github.com/Shopify/polaris-react/pull/2182))
2626
- Fixed `ActionList` wrapping text within a `Popover` ([#2057](https://github.com/Shopify/polaris-react/pull/2057))
27-
- Fixed `Banner` spacing when inside of a section ([2188](https://github.com/Shopify/polaris-react/pull/2188))
27+
- Fixed `Banner` spacing when inside of a section ([2188](https://github.com/Shopify/polaris-react/pull/2188))
28+
- Fixed `Stack` so it doesn't add extra spacing between items in Safari ([#2195](https://github.com/Shopify/polaris-react/pull/2195))

src/components/Stack/Stack.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
> .Item {
99
margin-top: spacing($spacing);
1010
margin-left: spacing($spacing);
11-
max-width: calc(100% - #{spacing($spacing)});
11+
max-width: 100%;
1212
}
1313
}
1414

0 commit comments

Comments
 (0)