diff --git a/.changeset/giant-bulldogs-chew.md b/.changeset/giant-bulldogs-chew.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/giant-bulldogs-chew.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/metal-jars-appear.md b/.changeset/metal-jars-appear.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/metal-jars-appear.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.github/workflows/chromatic-pr.yaml b/.github/workflows/chromatic-pr.yaml index c672211ca60..d11fe935de5 100644 --- a/.github/workflows/chromatic-pr.yaml +++ b/.github/workflows/chromatic-pr.yaml @@ -57,7 +57,7 @@ jobs: onlyChanged: '!(main)' externals: | **/!(*.module).scss - packages/components/**/*.css + **/!(*.module).css update-branch-preview: runs-on: ubuntu-latest diff --git a/docs/.storybook/preview.css b/docs/.storybook/preview.css index d7c4a5b038e..ef3a124899d 100644 --- a/docs/.storybook/preview.css +++ b/docs/.storybook/preview.css @@ -28,6 +28,11 @@ pre code { font-size: var(--typography-heading-1-font-size); line-height: var(--typography-heading-1-line-height); letter-spacing: var(--typography-heading-1-letter-spacing); + margin-bottom: var(--spacing-20); + + > a { + float: unset; + } } :where(h2:not(.sb-anchor, .sb-unstyled, .sb-unstyled h2)) { @@ -38,6 +43,15 @@ pre code { letter-spacing: var(--typography-heading-2-letter-spacing); border-bottom: 0; text-decoration: none; + margin-top: var(--spacing-32); + + &:first-of-type { + margin-top: var(--spacing-32); + } + + > a { + float: unset; + } } :where(h3:not(.sb-anchor, .sb-unstyled, .sb-unstyled h3)) { @@ -46,6 +60,16 @@ pre code { font-size: var(--typography-heading-3-font-size); line-height: var(--typography-heading-3-line-height); letter-spacing: var(--typography-heading-3-letter-spacing); + margin-top: var(--spacing-24); + margin-bottom: var(--spacing-12); + + &:first-of-type { + margin-top: var(--spacing-24); + } + + > a { + float: unset; + } } :where(h4:not(.sb-anchor, .sb-unstyled, .sb-unstyled h4)) { @@ -54,6 +78,16 @@ pre code { font-size: var(--typography-heading-4-font-size); line-height: var(--typography-heading-4-line-height); letter-spacing: var(--typography-heading-4-letter-spacing); + margin-top: var(--spacing-24); + margin-bottom: var(--spacing-12); + + &:first-of-type { + margin-top: var(--spacing-24); + } + + > a { + float: unset; + } } :where(h5:not(.sb-anchor, .sb-unstyled, .sb-unstyled h5)) { @@ -62,6 +96,15 @@ pre code { font-size: var(--typography-heading-5-font-size); line-height: var(--typography-heading-5-line-height); letter-spacing: var(--typography-heading-5-letter-spacing); + margin-top: var(--spacing-20); + + &:first-of-type { + margin-top: var(--spacing-20); + } + + > a { + float: unset; + } } :where(p:not(.sb-anchor, .sb-unstyled, .sb-unstyled p)) { diff --git a/docs/components/ResourceLinks/ResourceLinks.tsx b/docs/components/ResourceLinks/ResourceLinks.tsx index a36ad949ded..686ce4e4df7 100644 --- a/docs/components/ResourceLinks/ResourceLinks.tsx +++ b/docs/components/ResourceLinks/ResourceLinks.tsx @@ -43,7 +43,7 @@ export const ResourceLinks = ({