⚠️ This ticket can only be start once the ticket 450 is completed
Heading element will have the .dcx-heading class name
Heading element will have .dcx-button--[level] class name for all possible variants
Overview
Possible states:
Default
Variants:
level 1
level 2
level 3
level 4
level 5
level 6
We need to define tokens for all the combinations between states and variants:
default-level-1
default-level-2
default-level-3
etc.
Keeping in mind we have the elements:
Heading (element itself) -> heading
Storybook
Create the pages for:
Playground
Default
AccessibleTheme
DarkTheme
MaterialTheme
On each MDX page make examples for:
Level 1
Level 2
Level 3
Level 4
Level 5
Level 6
Token definition
Considerations:
Take as reference the FormSelect component. Take into consideration FormSelect will be refactored to follow the token names as described bellow in "possible tokens".
Add the tokens to src/design-system/tokens.json
Define all styles in src/design-system/heading.css
Add import to the new CSS file in src/design-system/index.css
Prerequisites
⚠️ This ticket can only be start once the ticket 450 is completed
.dcx-heading
class name.dcx-button--[level]
class name for all possible variantsOverview
Possible states:
Variants:
We need to define tokens for all the combinations between states and variants:
Keeping in mind we have the elements:
Storybook
Create the pages for:
On each MDX page make examples for:
Token definition
Considerations:
src/design-system/tokens.json
src/design-system/heading.css
src/design-system/index.css
Possible tokens:
Follow the naming pattern:
F.e. for font-weight-heading-level_2 we have:
Please follow these steps to create your branch: