Skip to content

Commit

Permalink
fix: page description with tag spacing (#1519)
Browse files Browse the repository at this point in the history
* fix: page description with tag spacing

* chore: update lockfile

* fix: remove left margin from tag in page description
  • Loading branch information
alisonjoseph authored Sep 23, 2024
1 parent 37d2925 commit 27452cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

// Multiple paragaphs
.page-description > * + * {
.page-description > :global(.cds--row) + * {
margin-top: var(--space);
}

Expand All @@ -18,7 +18,14 @@
}

// with tag
body .page-description:has(:global(.cds--tag)) {
position: relative;
}

.page-description :global(.cds--tag) {
position: absolute;
margin-top: -$spacing-09;
top: -$spacing-08;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
}
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10530,7 +10530,7 @@ __metadata:
dependencies:
"@carbon/icons-react": "npm:^11.43.0"
gatsby: "npm:^5.13.6"
gatsby-theme-carbon: "npm:^4.1.1"
gatsby-theme-carbon: "npm:^4.1.2"
react: "npm:^18.3.1"
react-dom: "npm:^18.3.1"
languageName: unknown
Expand Down Expand Up @@ -11831,7 +11831,7 @@ __metadata:
languageName: unknown
linkType: soft

"gatsby-theme-carbon@npm:^4.1.1, gatsby-theme-carbon@workspace:packages/gatsby-theme-carbon":
"gatsby-theme-carbon@npm:^4.1.2, gatsby-theme-carbon@workspace:packages/gatsby-theme-carbon":
version: 0.0.0-use.local
resolution: "gatsby-theme-carbon@workspace:packages/gatsby-theme-carbon"
dependencies:
Expand Down

0 comments on commit 27452cf

Please sign in to comment.