Decisiv / styled-components-modifiers

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

modifiers should be a property of the component #12

Closed alanbsmith closed 6 years ago

alanbsmith commented 6 years ago

EXPECTED BEHAVIOR

Sometimes you just want to ask a component about its modifiers, but you can't. 😢

ACTUAL BEHAVIOR

Component.modifiers
#=> undefined

SUGGESTED SOLUTION

Not sure yet. going to mess with it.

tinynumbers commented 6 years ago

I'm thinking that we can make this something that isn't actually exposed in the API or docs of SCM or decisiv-ui-utils, but provide an internal capability that is used by buildStyledComponent to sort of inherit the modifiers. I'll give it some thinkin'...

andrewtpoe commented 6 years ago

This functionality is not a part of what styled-components-modifiers provides, and is best handled in something like a factory function you use to build your styled component.

I'm going to close this issue as wontfix.