Decisiv / styled-components-modifiers

A library to enable BEM flavored modifiers (and responsive modifiers) in styled components.
MIT License
298 stars 11 forks source link

fix(ignored-modifiers): enables css util in modifiers #20

Closed andrewtpoe closed 5 years ago

andrewtpoe commented 5 years ago

OVERVIEW

fixes #19

This PR enables the css util from styled components in the modifier config. Previously this util was only useable if you were using the returned object pattern.

WHERE SHOULD THE REVIEWER START?

lib/utils/tests/modifiedStyles.js

HOW CAN THIS BE MANUALLY TESTED?

Run the test suite.

ANY NEW DEPENDENCIES ADDED?

lodash.isarray - an additional util from the lodash family.

CHECKLIST

Be sure all items arebefore submitting a PR for review.

GIF

Share a fun GIF to say thanks to your reviewer:

andrewtpoe commented 5 years ago

I've updated this PR to add styled-components and use the imported css util as you suggested @andrefgneves