Closed cg-mmirca closed 7 months ago
.dcx-pre
No variants
The difference with CodeSnippet element is that this one is an block element. It can have box styles such as padding.
CodeSnippet
Considerations:
src/design-system/tokens.json
src/design-system/preformatted-text.css
src/design-system/index.css
Possible tokens:
Note that this element is similar to CodeSnippet Consider using similar token values for size.
Follow the naming pattern
Create the pages for:
On each MDX page make examples for each possible variant
Please follow these steps to create your branch:
git checkout release/1.0.0 git pull git checkout -b 'feature/preformatted-text'
Closed by https://github.com/Capgemini/dcx-react-library/pull/575
PreformattedText - Design System
1 - Prerequisites
.dcx-pre
class name2 - Overview
2.1 - Possible states
2.2 - Variants
No variants
2.3 - Structure
The difference with
CodeSnippet
element is that this one is an block element. It can have box styles such as padding.2.4 - Tokens definition
Considerations:
src/design-system/tokens.json
src/design-system/preformatted-text.css
src/design-system/index.css
Possible tokens:
Note that this element is similar to
CodeSnippet
Consider using similar token values for size.Follow the naming pattern
3 - Storybook
Create the pages for:
On each MDX page make examples for each possible variant
4 - Initial setup
Please follow these steps to create your branch: