-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(components): rename Heading and SubHeading components * feat(components): add codemod and test for components name change * feat(components): rename Text component to Body * feat(components): update components name codemod to include Body component * (design tokens):add new headline, subHeadline and body types * feat(components):update Headline component with new size values * feat(components):remove SizeStyles from SubHeadline component * feat(components): update Body component with new size and variants * feat(components): remove Blockquote component * add changesets * fix stories * Add codemod for typography sizes * Add codemod for body variants * feat(components):update storybook components with new size names * Update MIGRATION.md * update changesets and storybook components * update Body and Headline docs * update storybook components * update Headline and Body components * update storybook components and codemods for sizes * update docs and snapshots * update docs * Fix custom as in Body component * Fix custom styles of the Anchor component * update Body test Co-authored-by: Connor Bär <connor.baer@me.com>
- Loading branch information
1 parent
977ad86
commit eb9e0b4
Showing
84 changed files
with
1,428 additions
and
1,667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sumup/design-tokens': major | ||
--- | ||
|
||
Added `headline`, `subHeadline`, and `body` properties to the typography design tokens. These are used by the new semantic Headline, SubHeadline, and Body components in Circuit UI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
'@sumup/circuit-ui': major | ||
--- | ||
|
||
The new semantic typography components make it clear when each should be used, are flexible enough to cover all use cases. To represent more semantic variations some of the sizes have been removed and new size names added. | ||
|
||
#### Headline | ||
|
||
Renamed the `Heading` component to `Headline` and mapped the styles to the new ones. These changes can be codemodded (🤖 _component-names-typography_). | ||
The size prop has been changed to accept the new size numbers. For `Headline` component **_exa_** and **_peta_** has been changed to **_one_** with new values, **_tera_** has been changed to **_two_**, **_giga_** to **_three_**, **_mega_** and **_kilo_** to **_four_** (🤖 _typography-sizes_) | ||
|
||
Usage example: | ||
|
||
```diff | ||
- <Heading size="kilo" /> | ||
+ <Headline size="four" /> | ||
``` | ||
|
||
#### SubHeadline | ||
|
||
Renamed the `SubHeading` component to `SubHeadline` and mapped the styles to the new ones (🤖 _component-names-typography_). The `SubHeadline` component now uses only one size value (🤖 _typography-sizes_). | ||
|
||
#### Body | ||
|
||
The `Text` component has been renamed to `Body` (🤖 _component-names-typography_). The size prop is adapted to accept the new size numbers and **_giga_** size has been removed, **_mega_** and **_kilo_** sizes have been changed to **_one_** and **_two_** respectively. | ||
|
||
Usage example: | ||
|
||
```diff | ||
- <Text size="mega" /> | ||
+ <Body size="one" /> | ||
``` | ||
|
||
The `Text` component's bold prop has been removed. Use the `Body` component `(variant="highlight")` instead (🤖 _body-variant-highlight_). | ||
|
||
Usage example: | ||
|
||
`<Body variant="highlight">bold</Body>` | ||
|
||
The `Text` component's italic and strike props has been removed. Use the custom styles instead. | ||
|
||
Additionally, the new `success`, `error` and `subtle` variants are added. | ||
|
||
The `Blockquote` component has been removed and replaced by the `Body` component with `variant="quote"`. | ||
|
||
Usage example: | ||
|
||
`<Body variant="quote">quote</Body>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.