Skip to content

Commit

Permalink
fixes a margin issue (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Robson committed Feb 10, 2021
1 parent 51ce076 commit 1453d8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions components/vf-content/CHANGELOG.md
@@ -1,3 +1,7 @@
### 1.4.0

* adds top margin override for first item inside of `vf-content`

### 1.3.2

* dependency bump
Expand Down
8 changes: 6 additions & 2 deletions components/vf-content/vf-content.scss
Expand Up @@ -31,8 +31,7 @@
h2:not([class*='vf-']) {
@include set-type(text-heading--2, $custom-margin-bottom: 39px);

margin-top: 0;
padding-top: 13px;
margin-top: 13px;

b,
strong {
Expand Down Expand Up @@ -84,6 +83,11 @@
}
}

// remove the top margin from first items becasue some times the first item is an h3
& > :first-child {
margin-top: 0 !important;
}

p:not([class*='vf-']) {
@include set-type(text-body--2, $custom-margin-bottom: 24px);
}
Expand Down

0 comments on commit 1453d8b

Please sign in to comment.