diff --git a/.changeset/strong-bottles-swim.md b/.changeset/strong-bottles-swim.md
new file mode 100644
index 00000000000..9b76d2d1790
--- /dev/null
+++ b/.changeset/strong-bottles-swim.md
@@ -0,0 +1,7 @@
+---
+'@shopify/polaris': minor
+---
+
+Refactored `SkeletonPage` to use primitive Layout components
+Removed `max-width` on children in `AlphaStack`
+Added `narrowWidth` and `fullWidth` examples to `AlphaStack` stories
diff --git a/polaris-react/src/components/AlphaStack/AlphaStack.scss b/polaris-react/src/components/AlphaStack/AlphaStack.scss
index 0a212e1817d..11e29d82bc4 100644
--- a/polaris-react/src/components/AlphaStack/AlphaStack.scss
+++ b/polaris-react/src/components/AlphaStack/AlphaStack.scss
@@ -26,10 +26,6 @@
@media #{$p-breakpoints-xl-up} {
gap: var(--pc-stack-gap-xl);
}
-
- > * {
- max-width: 100%;
- }
}
.listReset {
diff --git a/polaris-react/src/components/SkeletonPage/SkeletonPage.scss b/polaris-react/src/components/SkeletonPage/SkeletonPage.scss
index 3ad8adb95e7..08b9841f4ec 100644
--- a/polaris-react/src/components/SkeletonPage/SkeletonPage.scss
+++ b/polaris-react/src/components/SkeletonPage/SkeletonPage.scss
@@ -2,62 +2,19 @@
$primary-action-button-height: 36px;
$primary-action-button-width: 100px;
-$skeleton-display-text-max-width: 120px;
-.Page {
- @include page-layout;
-}
-
-.fullWidth {
- max-width: none;
-}
-
-.narrowWidth {
- max-width: $layout-width-primary-max;
-}
-
-.Content {
- @include page-content-layout;
-}
-
-.Header {
- @include page-header-layout;
- padding-bottom: var(--p-space-2);
-}
-
-.BreadcrumbAction {
- padding-top: var(--p-space-4);
- padding-bottom: var(--p-space-4);
- margin-top: calc(-1 * var(--p-space-1));
- margin-bottom: calc(-1 * var(--p-space-1));
-}
-
-.TitleAndPrimaryAction {
- display: flex;
- align-items: flex-start;
-}
-
-.TitleWrapper {
- flex: 1 1 0%;
+:root {
+ --pc-skeleton-page-max-width: 998px;
+ --pc-skeleton-page-max-width-narrow: 662px;
}
.Title {
font-weight: var(--p-font-weight-semibold);
- font-size: 24px;
- line-height: 28px;
-
- @media #{$p-breakpoints-md-up} {
- font-size: 20px;
- }
+ font-size: var(--p-font-size-300);
+ line-height: var(--p-font-line-height-4);
}
.SkeletonTitle {
- display: flex;
- background-color: var(--p-surface-neutral);
- border-radius: var(--p-border-radius-base);
- max-width: $skeleton-display-text-max-width;
- height: 28px;
-
@media screen and (-ms-high-contrast: active) {
background-color: grayText;
}
@@ -71,32 +28,3 @@ $skeleton-display-text-max-width: 120px;
min-width: $primary-action-button-width;
}
}
-
-.Actions {
- margin-top: var(--p-space-2);
- display: flex;
- flex-direction: row-reverse;
- justify-content: flex-end;
- align-items: center;
-}
-
-.Action {
- display: flex;
- flex-direction: column;
- justify-content: center;
- min-height: control-slim-height();
- padding-right: var(--p-space-6);
- margin-top: calc(-1 * var(--p-space-1));
- margin-bottom: calc(-1 * var(--p-space-1));
- padding-top: var(--p-space-4);
-
- &:first-child {
- padding-right: 0;
- }
-
- @media #{$p-breakpoints-lg-down} {
- &:not(:last-child) {
- display: none;
- }
- }
-}
diff --git a/polaris-react/src/components/SkeletonPage/SkeletonPage.stories.tsx b/polaris-react/src/components/SkeletonPage/SkeletonPage.stories.tsx
index 41216d5e316..4ffd288ba88 100644
--- a/polaris-react/src/components/SkeletonPage/SkeletonPage.stories.tsx
+++ b/polaris-react/src/components/SkeletonPage/SkeletonPage.stories.tsx
@@ -100,3 +100,103 @@ export function WithStaticContent() {
);
}
+
+export function WithNarrowWidth() {
+ return (
+