From 2607a015821d322f331ed0a464ecb6e8cfe39f65 Mon Sep 17 00:00:00 2001 From: Alex Page Date: Mon, 9 Nov 2020 09:25:09 -0500 Subject: [PATCH 1/2] Remove 10px padding on details page --- .storybook/polaris-readme-loader.js | 1 + .storybook/preview.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.storybook/polaris-readme-loader.js b/.storybook/polaris-readme-loader.js index 2f3f066ebeb..24fcebadbb4 100644 --- a/.storybook/polaris-readme-loader.js +++ b/.storybook/polaris-readme-loader.js @@ -71,6 +71,7 @@ ${example.storyName}.parameters = { minHeight: '720px', borderBottom: '1px solid #000', marginBottom: '8px', + padding: '10px', }}> ${example.name} <${example.storyName}Component /> diff --git a/.storybook/preview.js b/.storybook/preview.js index bc71e045941..c82e38d39dd 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -12,6 +12,7 @@ export const parameters = { skip: true, widths: [375, 1280], }, + layout: 'fullscreen' }; function StrictModeToggle({isStrict = false, children}) { From c37a86fa4eaffe61a8c659168248509c701013d1 Mon Sep 17 00:00:00 2001 From: Alex Page Date: Mon, 9 Nov 2020 19:44:51 -0500 Subject: [PATCH 2/2] Apply fullwidth layout to Playground pages --- .storybook/polaris-readme-loader.js | 1 - .storybook/preview.js | 1 - playground/stories.tsx | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.storybook/polaris-readme-loader.js b/.storybook/polaris-readme-loader.js index 24fcebadbb4..2f3f066ebeb 100644 --- a/.storybook/polaris-readme-loader.js +++ b/.storybook/polaris-readme-loader.js @@ -71,7 +71,6 @@ ${example.storyName}.parameters = { minHeight: '720px', borderBottom: '1px solid #000', marginBottom: '8px', - padding: '10px', }}> ${example.name} <${example.storyName}Component /> diff --git a/.storybook/preview.js b/.storybook/preview.js index c82e38d39dd..bc71e045941 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -12,7 +12,6 @@ export const parameters = { skip: true, widths: [375, 1280], }, - layout: 'fullscreen' }; function StrictModeToggle({isStrict = false, children}) { diff --git a/playground/stories.tsx b/playground/stories.tsx index ae20bcf8514..3f838143d05 100644 --- a/playground/stories.tsx +++ b/playground/stories.tsx @@ -7,6 +7,7 @@ export default { title: 'Playground/Playground', parameters: { chromatic: {disable: true}, + layout: 'fullscreen', }, };