Skip to content

feat: TextContent blockquote styling - #4760

Draft
ernst-dev wants to merge 1 commit into
mainfrom
feat/textcontent-blockquote
Draft

feat: TextContent blockquote styling#4760
ernst-dev wants to merge 1 commit into
mainfrom
feat/textcontent-blockquote

Conversation

@ernst-dev

Copy link
Copy Markdown
Member

Description

Implements blockquote styling for the TextContent component, resolving #4172.

Adds a blockquote rule to src/text-content/styles.scss using Cloudscape typography and colour tokens:

Property Token
Left border accent (width) $border-divider-section-width
Left border accent (colour) $color-border-divider-default
Text colour $color-text-body-default
Block margin $space-scaled-xs
Block padding $space-xxs
Inline-start padding $space-m
Font style italic

This keeps the blockquote visually consistent with the Cloudscape design language while clearly distinguishing quoted content from surrounding body text.

Related links, issue #, if available: Closes #4172

How has this been tested?

  • 4 unit tests in src/text-content/__tests__/text-content-blockquote.test.tsx (all pass)
  • Updated permutations dev page at pages/text-content/permutations.page.tsx with single-line and multi-line blockquote examples
Review checklist

Correctness

  • Changes are backward-compatible — blockquote was previously unstyled inside TextContent; adding a rule is additive.
  • Changes use only Cloudscape design tokens (no hard-coded colour/spacing values).

Security

  • No URL handling.

Testing

  • Changes are covered with new unit tests.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Adds a `blockquote` rule to the TextContent component styles using
Cloudscape design tokens:

- Left border accent using `$border-divider-section-width` and
  `$color-border-divider-default`
- Body text colour via `$color-text-body-default`
- Block spacing with `$space-scaled-xs` (margin) and `$space-xxs`
  (padding-block)
- Inline start padding via `$space-m` for comfortable indentation
- Italic font style to visually distinguish quoted content

Also updates the Typography permutations dev page with single-line and
multi-line blockquote examples, and adds unit tests.

Closes #4172
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Blockquote support in TextContent

1 participant