Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Aug 21, 2024
1 parent fe3b268 commit d22fd1b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/features/1-theme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Use spacings for gutters, margins, and paddings. Don't use it for border width,

## Typography

Avoid using the `var(--cui-typography-*)` CSS custom properties directly in your styles. Instead, use the typography components [`Display`](Typography/Display/Docs), [`Headline`](Typography/Headline/Docs), [`SubHeadline`](Typography/SubHeadline/Docs), [`Body`](Typography/Body/Docs), and [`BodyLarge`](Typography/BodyLarge/Docs).
Avoid using the `var(--cui-typography-*)` CSS custom properties directly in your styles. Instead, use the typography components [`Display`](Typography/Display/Docs), [`Headline`](Typography/Headline/Docs), and [`Body`](Typography/Body/Docs).

<CustomPropertiesTable namespace="typography" preview={Typography} />

Expand Down
2 changes: 1 addition & 1 deletion packages/circuit-ui/components/Display/Display.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ The Display component comes in three sizes. In most cases, use the [Headline com

## Accessibility

All accessibility guidelines for the [Headline component](Typography/Headline) also apply to the Display component../Display.stories
All accessibility guidelines for the [Headline component](Typography/Headline) also apply to the Display component.
2 changes: 1 addition & 1 deletion packages/circuit-ui/components/Headline/Headline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The Headline component is used for describing the contents of a page or page sec

The Headline component comes in three sizes.

Use the `four` size for card headers and `three` for page titles in web applications. For specific use cases such as landing pages, consider using the [Display](Typography/Display) component.
Use the `m` size for card headers and `l` for page titles in web applications. Consider using the [Display](Typography/Display) component for specific use cases such as landing pages.

<Story of={Stories.Sizes} inline={false} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ n/a

## Further Reading

- [Theme documentation](https://circuit.sumup.com/?path=/docs/features-theme--docs) on the Circuit UI docs
- [Migration guide](https://github.com/sumup-oss/circuit-ui/blob/main/MIGRATION.md)
- [Design token release notes](https://github.com/sumup-oss/circuit-ui/blob/main/packages/design-tokens/CHANGELOG.md)
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ n/a
## Further Reading

- [Theme documentation](https://circuit.sumup.com/?path=/docs/features-theme--docs) on the Circuit UI docs
- [Migration guide](https://github.com/sumup-oss/circuit-ui/blob/main/MIGRATION.md)
- [Design token release notes](https://github.com/sumup-oss/circuit-ui/blob/main/packages/design-tokens/CHANGELOG.md)

0 comments on commit d22fd1b

Please sign in to comment.