Skip to content

Commit 2af0e1c

Browse files
committed
fix: prevent applying margin on single elements
1 parent 038a1c9 commit 2af0e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/components/all/src/text/styles/index.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
margin-bottom: var(--margin-bottom);
1717
line-height: var(--line-height);
1818

19-
&.margin {
20-
&:not(.p) {
19+
&:not(:only-child).margin {
20+
&:not(.p, a) {
2121
--margin-bottom: calc(var(--font-size) * 0.75);
2222
}
2323

0 commit comments

Comments
 (0)