Closed msholty-fd closed 4 years ago
The css function has a default functionality of formatting your css classNames as such:
css
css-${hash}-{__filename}--{variableName}
Since we have autoLabel set as true, this does not happen (even with labelFormat set!)
autoLabel
labelFormat
See the difference:
If you use the css={[styles.root, styles.rootSmall]} syntax, it will still produce developer friendly css classNames:
css={[styles.root, styles.rootSmall]}
Note: This PR makes no changes to production CSS classes
The
css
function has a default functionality of formatting your css classNames as such:css-${hash}-{__filename}--{variableName}
Since we have
autoLabel
set as true, this does not happen (even withlabelFormat
set!)See the difference:
Before
After
Composing styles is easy!
If you use the
css={[styles.root, styles.rootSmall]}
syntax, it will still produce developer friendly css classNames:Note: This PR makes no changes to production CSS classes