Skip to content

Commit 4b85af9

Browse files
authored
feat(card): update heading and description spacing (#13320)
**Related Issue:** [#12304](#12304) ## Summary Remove `margin-top` from `description` slot. Update `heading` and `description` line heights to `--calcite-font-line-height-relative-snug`.
1 parent 2612492 commit 4b85af9

File tree

1 file changed

+3
-1
lines changed
  • packages/components/src/components/card

1 file changed

+3
-1
lines changed

packages/components/src/components/card/card.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@
117117
text-n1-wrap
118118
m-0
119119
font-medium;
120+
line-height: var(--calcite-font-line-height-relative-snug);
120121
}
121122

122123
@include includes.slotted("description", "*") {
123124
@apply text-color-2
124125
text-n2-wrap
125-
m-0 mt-0.5
126+
m-0
126127
font-normal;
128+
line-height: var(--calcite-font-line-height-relative-snug);
127129
}
128130

129131
@include includes.slotted("thumbnail", "img") {

0 commit comments

Comments
 (0)