-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Description
This could be helpful, if you have a style definition like the following. Right now I had to create function that merges all objects in the array:
const styles = {
root: [
{
display: 'inline',
},
(nowrap || block) && {
display: 'block',
},
nowrap && {
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
},
],
}Additionally, when implementing this syntax, aphrodite could also support string values for base-classes that are only used for markers, i.e.:
const styles = {
root: [
'namespace-Component',
{
display: 'block'
}
]
}
css(StyleSheet.create(styles).root)would result in namespace-Component root_HASH.
Let me know what you think!
Metadata
Metadata
Assignees
Labels
No labels