Skip to content

Commit 8ad6871

Browse files
authored
Update blockquote to restore some OG styling, show nested example in docs (#42120)
1 parent 96c10cc commit 8ad6871

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

scss/content/_type.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ $blockquote-tokens: () !default;
1212
$blockquote-tokens: defaults(
1313
(
1414
--blockquote-gap: calc(var(--spacer) / 2),
15+
--blockquote-padding-x: var(--spacer),
1516
--blockquote-margin-y: 1rem,
1617
--blockquote-font-size: var(--font-size-md),
18+
--blockquote-border-width: .25rem,
19+
--blockquote-border-color: var(--border-color),
1720
--blockquote-footer-font-size: var(--font-size-sm),
1821
--blockquote-footer-color: var(--fg-3),
1922
),
@@ -59,8 +62,10 @@ $blockquote-tokens: defaults(
5962
display: flex;
6063
flex-direction: column;
6164
gap: var(--blockquote-gap);
65+
padding-inline-start: var(--blockquote-padding-x);
6266
margin-bottom: var(--blockquote-margin-y);
6367
font-size: var(--blockquote-font-size);
68+
border-inline-start: var(--blockquote-border-width) solid var(--blockquote-border-color);
6469

6570
> * {
6671
margin-bottom: 0;

site/src/content/docs/content/typography.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ For source attribution, use a `<figcaption>` or a block level element (e.g., `<p
143143
</figcaption>
144144
</figure>`} />
145145

146+
### Nested
147+
148+
<Example code={`<blockquote class="blockquote">
149+
<p>A well-known quote, contained in a blockquote element.</p>
150+
<blockquote class="blockquote">
151+
<p>A well-known quote, contained in a blockquote element.</p>
152+
</blockquote>
153+
</blockquote>`} />
154+
146155
### Alignment
147156

148157
Use text or flex utilities as needed to change the alignment of your blockquote.

0 commit comments

Comments
 (0)