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

How can I set custom styles through the style getter? #150

Open
Krishuthapa opened this issue Aug 23, 2019 · 0 comments
Open

How can I set custom styles through the style getter? #150

Krishuthapa opened this issue Aug 23, 2019 · 0 comments

Comments

@Krishuthapa
Copy link

static get styles(){
   return [ 
           css`  
           .flex {
            @apply --layout-horizontal;
            }`]
}

render(){
    return html`<div class="container flex">
                <div><span>Duration</span></div>
                <div><paper-radio-button>This Month</paper-radio-button></div>
                <div><paper-radio-button>Last 6 Months</paper-radio-button></div>
            </div>`
}

How can I set the style of the flex through the styles getter? If I do something llike the snippet above the styles aren't set

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