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

Using dynamic styles with CSS #4

Open
codemeasandwich opened this issue Mar 21, 2018 · 0 comments
Open

Using dynamic styles with CSS #4

codemeasandwich opened this issue Mar 21, 2018 · 0 comments

Comments

@codemeasandwich
Copy link
Owner

Cant get this dynamic style to fire

const styles = outline({
  
    widgetsWrapper: {
        base:{
              boxShadow: "0px 0px 4px #00000022"
        },
        "@media (max-width: 600px)": {
             margin: "0 -5px 15px 0px"
         }
    }
},{
    widgetsWrapper:(selected)=>(selected ? {boxShadow:"0px 0px 8px 6px #1101ff22"}:{})
});

const WidgetsWrapper = styles.widgetsWrapper`div`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant