Skip to content

Commit

Permalink
Use padding instead of margin on Content (#5444)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmacknz authored Jan 10, 2025
1 parent e35a71d commit 8160df5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-jars-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kaizen/components': patch
---

Content: use padding instead of margin for inline spacing
4 changes: 2 additions & 2 deletions packages/components/src/Content/Content.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

.content {
max-width: $layout-content-max-width;
margin: 0 $layout-content-side-margin;
padding: 0 $layout-content-side-margin;
width: 100%;

@media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
margin: 0 $content-margin-width-on-medium-and-small;
padding: 0 $content-margin-width-on-medium-and-small;
}
}

0 comments on commit 8160df5

Please sign in to comment.