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 a prop flag with a native CSS #3

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

Using a prop flag with a native CSS #3

codemeasandwich opened this issue Mar 14, 2018 · 0 comments
Labels

Comments

@codemeasandwich
Copy link
Owner

Can not flag a style to be applied with using css selectors in the base style

import React from 'react';
import outline from 'react-outline'
import { Styles } from 'react-outline'

let styles = {
    base : {
      title:{
        base:{ color:"blue" },
       ":hover":{ color:"green", fontWeight:"bold" },
        error:{ color:"red" }
      }
    }
}

styles = outline(styles);

const Title = styles.title`p`

export default <div>
<Styles/>
<Title>basic</Title>
<Title error>error</Title>
</div>
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