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

Commit 06b8b2c

Browse files
authored
8248/fix toc layout (#8338)
This PR adjusts the page padding site wide to ensure that the minimum breakpoint at which the TOC appears allows embedded examples to show the default desktop breakpoint. Previously this would show a tablet breakpoint instead. * Updated Page styles to reduce gap from `5rem` to `2.5rem` * Update Container styles to reduce horizontal padding from `4rem` to `1.5rem`
1 parent d936e6e commit 06b8b2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polaris.shopify.com/src/components/Container/Container.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
margin-left: auto;
66
margin-right: auto;
77
max-width: $pageMaxWidth;
8-
padding: 0 4rem;
8+
padding: 0 1.5rem;
99

1010
@media screen and (max-width: $breakpointTablet) {
1111
padding: 0 1.25rem;

polaris.shopify.com/src/components/Page/Page.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.Page {
2424
--toc-width: 16rem;
2525
display: flex;
26-
gap: 5rem;
26+
gap: 2.5rem;
2727
}
2828

2929
.Post {

0 commit comments

Comments
 (0)