Skip to content

[design-system]: Allow root elements to be further adjusted using styled-components #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SeverS opened this issue Nov 1, 2019 · 1 comment
Assignees

Comments

@SeverS
Copy link
Member

SeverS commented Nov 1, 2019

Every component in design system must have className prop, in order to be able to customize it via styled components.

For example:
I want to add a padding for apps widget card. Using styled-components i can write

const AppsCard = styled(AppsWidgetCard)`
  padding: 0.5em;
`

In the background styled method will create a new css class name and pass it as className prop to AppsWidgetCard and that className should be passed further to the root element.

@SeverS SeverS changed the title [desygn-system]: Allow root elements to be further adjusted using styled-components [design-system]: Allow root elements to be further adjusted using styled-components Nov 1, 2019
@SeverS
Copy link
Member Author

SeverS commented Nov 1, 2019

solved by #200

@SeverS SeverS closed this as completed Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants