Skip to content

Commit

Permalink
fix: Updates description in component reference docs to match Intro s…
Browse files Browse the repository at this point in the history
…tyling
  • Loading branch information
Daniel Sauble committed Jun 8, 2020
1 parent dd4b15b commit d9d9dd1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/Intro.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.container p {
color: var(--color-neutrals-600);
font-size: 1.125rem;
line-height: 2rem;
.container {
composes: intro-text from global;
}
10 changes: 10 additions & 0 deletions src/components/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,13 @@ ul {
li {
margin-bottom: 1rem;
}

:global {
.intro-text {
p {
color: var(--color-neutrals-600);
font-size: 1.125rem;
line-height: 2rem;
}
}
}
4 changes: 3 additions & 1 deletion src/templates/ComponentReferenceTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const ComponentReferenceTemplate = ({ data }) => {
<section
className={cx(templateStyles.section, templateStyles.description)}
>
<ReactMarkdown source={componentDescription} />
<div class="intro-text">
<ReactMarkdown source={componentDescription} />
</div>
</section>

<section className={templateStyles.section}>
Expand Down

0 comments on commit d9d9dd1

Please sign in to comment.