Skip to content

Commit

Permalink
fix(Box): set margin-inline correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed May 5, 2023
1 parent efb5180 commit b27bd45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-camels-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@einride/ui": patch
---

Box: Set margin-inline correctly.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const Basic = {
background: "tertiary",
borderRadius: "lg",
height: 10,
marginInline: "sm",
width: 10,
},
} satisfies Story
Expand Down
3 changes: 1 addition & 2 deletions packages/einride-ui/src/components/layout/Box/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ const Wrapper = styled("div", {
margin-block-start: ${({ marginBlockStart, theme }) =>
marginBlockStart && getSpacing(marginBlockStart, theme)};
margin-bottom: ${({ marginBottom, theme }) => marginBottom && getSpacing(marginBottom, theme)};
margin-inline-end: ${({ marginInline, theme }) =>
marginInline && getSpacing(marginInline, theme)};
margin-inline: ${({ marginInline, theme }) => marginInline && getSpacing(marginInline, theme)};
margin-inline-end: ${({ marginInlineEnd, theme }) =>
marginInlineEnd && getSpacing(marginInlineEnd, theme)};
margin-inline-start: ${({ marginInlineStart, theme }) =>
Expand Down

0 comments on commit b27bd45

Please sign in to comment.