Skip to content

Commit

Permalink
chore: add margin block and remove space from last child
Browse files Browse the repository at this point in the history
  • Loading branch information
karimim committed Oct 15, 2024
1 parent b8e38d9 commit 1d463c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/styles/src/elements/paragraph.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
tokens.$default-map: elements.$post-paragraph;

p {
margin-block-start: tokens.get('paragraph-margin-block-start');
margin-block: tokens.get('paragraph-margin-block-start');

&:first-child {
margin-block-start: 0;
}

&:last-child {
margin-block-end: 0;
}
}

0 comments on commit 1d463c2

Please sign in to comment.