Skip to content
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

Emotion: Custom instance to avoid global conflict #24

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

ItsJonQ
Copy link
Contributor

@ItsJonQ ItsJonQ commented Jul 25, 2018

Emotion: Custom instance to avoid global conflict πŸ‘©β€πŸŽ€

This update adjusts the (custom) Emotion namespace to avoid collision with
potential stock instances of Emotion. Tests have been added for this case.

A emotion.cssWithScope guard + fallback is added to create-emotion-styled
that defaults to emotion.css if that custom function is not available.

This update adjusts the (custom) Emotion namespace to avoid collision with
potential stock instances of Emotion. Tests have been added for this case.

A `emotion.cssWithScope` guard + fallback is added to `create-emotion-styled`
that defaults to `emotion.css` if that custom function is not available.
@ItsJonQ ItsJonQ added bug Something isn't working enhancement New feature or request labels Jul 25, 2018
@ItsJonQ ItsJonQ self-assigned this Jul 25, 2018
@ItsJonQ ItsJonQ merged commit 35caecc into master Jul 25, 2018
@coveralls
Copy link

Pull Request Test Coverage Report for Build 151

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 148: 0.0%
Covered Lines: 69
Relevant Lines: 69

πŸ’› - Coveralls

@ItsJonQ ItsJonQ deleted the custom-emotion-instance branch July 26, 2018 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants