Skip to content

Commit

Permalink
fix(storybook-utils): fix xsmall2 breakpoint name (#73)
Browse files Browse the repository at this point in the history
Fix breakpoint name to match the key name which was updated by Jannick
  • Loading branch information
larsrickert authored Jan 8, 2024
1 parent 124ae10 commit f703e4e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
14 changes: 14 additions & 0 deletions .changeset/shiny-lies-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@sit-onyx/storybook-utils": patch
---

refactor: rename breakpoints

| Old | New |
| ------- | --- |
| 2xsmall | 2xs |
| sxmall | xs |
| small | sm |
| medium | md |
| large | lg |
| xlarge | xl |
24 changes: 12 additions & 12 deletions packages/storybook-utils/src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
/** All available Storybook breakpoints / viewports supported by Onyx. */
export const ONYX_BREAKPOINTS = {
xsmall2 : {
name: "2xsmall",
"2xs": {
name: "2xs",
styles: {
width: "320px",
height: "100%",
},
},
xsmall: {
name: "xsmall",
xs: {
name: "xs",
styles: {
width: "576px",
height: "100%",
},
},
small: {
name: "small",
sm: {
name: "sm",
styles: {
width: "768px",
height: "100%",
},
},
medium: {
name: "medium",
md: {
name: "md",
styles: {
width: "992px",
height: "100%",
},
},
large: {
name: "large",
lg: {
name: "lg",
styles: {
width: "1440px",
height: "100%",
},
},
xlarge: {
name: "xlarge",
xl: {
name: "xl",
styles: {
width: "1920px",
height: "100%",
Expand Down

0 comments on commit f703e4e

Please sign in to comment.