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

media-query independent components #36

Open
Zolmeister opened this issue Feb 24, 2015 · 0 comments
Open

media-query independent components #36

Zolmeister opened this issue Feb 24, 2015 · 0 comments
Labels

Comments

@Zolmeister
Copy link
Member

think of a way to move media queries outside of components
idea is a service, which components can query for state
e.g.

isLarge = MediaQueryService.getSize('myComponent')  > 100
className: classKebab {isLarge}

except that you can't get the actual size of the component, so will probably have to use enums and switches for break-points

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant