⚠️ This ticket can only be start once the ticket 451 is completed
Label element will have the .dcx-label class name
Label element will have the .dcx-label--[state] class name
Overview
Possible states:
Default
Error
Filled
Variants:
NONE
Keeping in mind we have the elements:
Label (element itself) -> formcontrol_label
Note that the tokens already exists. They were created for FormSelect. We can simply reuse them here.
Storybook
Create the pages for:
Playground
Default
AccessibleTheme
DarkTheme
MaterialTheme
On each MDX page make examples for:
Default label with a related Input.
Error label with a related error input.
Filled input with label
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/label.css
Add import to the new CSS file in src/design-system/index.css
Prerequisites
⚠️ This ticket can only be start once the ticket 451 is completed
.dcx-label
class name.dcx-label--[state]
class nameOverview
Possible states:
Variants: NONE
Keeping in mind we have the elements:
Note that the tokens already exists. They were created for FormSelect. We can simply reuse them here.
Storybook
Create the pages for:
On each MDX page make examples for:
Token definition
Considerations:
src/design-system/tokens.json
src/design-system/label.css
src/design-system/index.css
Possible tokens:
Follow the naming pattern:
F.e. for
font-size-formcontrol_label-error
we have:Please follow these steps to create your branch: