Skip to content

Commit

Permalink
fix(ld-typo): add reset for css component
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Apr 11, 2022
1 parent 19f9363 commit 754a8a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/liquid/components/ld-typo/ld-typo.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
color: var(--ld-typo-text-brand-color);
}

/* Reset within the shadow DOM. */
/* Reset within the shadow DOM */
.ld-typo {
color: inherit;
margin: 0;
Expand All @@ -23,6 +23,11 @@
--ld-typo-text-brand-color: var(--ld-thm-primary);
}

/* Reset for CSS component */
:where(.ld-typo) {
margin: 0;
}

.ld-typo,
.ld-typo--body-m {
font: var(--ld-typo-body-m);
Expand Down

0 comments on commit 754a8a3

Please sign in to comment.