We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0aa78 commit 952b432Copy full SHA for 952b432
polaris-react/.storybook/preview.js
@@ -80,9 +80,10 @@ export const globalTypes = {
80
},
81
...gridOptions,
82
};
83
-const views = {...breakpoints};
84
-delete views['breakpoints-xs'];
85
-const viewPorts = Object.entries(views).map(([key, value]) => {
+const viewPorts = Object.entries({
+ ...breakpoints,
+ 'breakpoints-xs': '20rem', // Replace the 0px xs breakpoint with 320px (20rem) for testing small screens
86
+}).map(([key, value]) => {
87
const name = kebabToCamelCase(key);
88
return {
89
name,
0 commit comments