Skip to content

Fancy - v2.1.0

Choose a tag to compare

@ItsJonQ ItsJonQ released this 13 Oct 02:16
· 36 commits to master since this release

Scope: CSS Extend fix

This update fixes the styled(Component) extending functionality with Emotion.

The issue was that the cssWithScope function was comparing the SCOPED namespace
rather than the CSS selector. This wasn't compatible with Emotion's
cache consolidator, which resulted in scoped classes NOT being able to be
extended.

Some very crude tests.

Before:

screen shot 2018-10-12 at 9 36 20 pm

After:

screen shot 2018-10-12 at 9 33 59 pm

Notice how in the After pic, both lines only have 2 classes, whereas the Before pic, it was 2 and 3.

Resolves: #27