-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
EXPECTED BEHAVIOR
Being able to write nested modifiers to reduce duplicated code.
const MODIFIER_CONFIG = {
asButton: () => {
css`
border: 1px solid grey;
padding: 10px 20px;
font-size: 15px;
`,
primary: () => {
css`
background-color: red;
`
},
secondary: () => {
css`
background-color: blue;
`
}
},
asText: () => {
css`
font-size: 12px;
`,
primary: ...
secondary: ...
},
};
<Component modifiers="asButton.secondary" />
ACTUAL BEHAVIOR
Have to either use multiple modifiers or duplicate the shared code.