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: resolves default style selection bug #49

Closed andrewtpoe closed 4 years ago

andrewtpoe commented 4 years ago

OVERVIEW

Give a brief description of what this PR does. closes #40

This PR enhances the default style selection logic to look for present modifiers, not a present size key.

NOTE: This fix was only added to applyStyleModifiers because applyResponsiveStyleModifiers is being removed.

WHERE SHOULD THE REVIEWER START?

e.g. /src/components/SomeComponent.js

src/applyStyleModifiers.ts

HOW CAN THIS BE MANUALLY TESTED?

List steps to test this locally.

The test case and the issue description outline the issue fairly clearly. Passing the tests will prove the fix.

ANY NEW DEPENDENCIES ADDED?

List any new dependencies added.

no

CHECKLIST

Be sure all items arebefore submitting a PR for review.

GIF

Share a fun GIF to say thanks to your reviewer: https://giphy.com