Skip to content

Commit

Permalink
[@mantine/core] TypographyStylesProvider: Fix margin removal affectin…
Browse files Browse the repository at this point in the history
…g non-typography elements (#7290)

* Restrict first- and last-child margin removal to only elements where margin is added

* Prettier style fix
  • Loading branch information
QuinnStraus authored Dec 23, 2024
1 parent 15b183d commit 2cdf8b8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
.root {
& :first-child {
&
:where(h1, h2, h3, h4, h5, h6, img, p, ul, ol, hr, pre, table, caption, blockquote)
:first-child {
margin-top: 0;
}

& :last-child {
&
:where(h1, h2, h3, h4, h5, h6, img, p, ul, ol, hr, pre, table, caption, blockquote)
:last-child {
margin-bottom: 0;
}

Expand Down

0 comments on commit 2cdf8b8

Please sign in to comment.