Skip to content

Commit

Permalink
fix: remove margin when cds-text=body is applied to body tag
Browse files Browse the repository at this point in the history
fixes cds-text="body" applies unexpected margin to body tag #143
  • Loading branch information
Ashley Ryan authored and ashleyryan committed Aug 16, 2022
1 parent 0576735 commit c50843b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/core/src/styles/typography/_typography.scss
Expand Up @@ -131,6 +131,11 @@
line-height: $cds-global-typography-body-line-height;
}

// remove extra margin on the body tag to avoid an unnecessary scrollbar
body[cds-text*='body'] {
@include remove-line-height-erasers;
}

[cds-text*='message'] {
$lh-gap: getLineHeightGap(
$cds-global-typography-message-line-height-static,
Expand Down

0 comments on commit c50843b

Please sign in to comment.