We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've just spent several hours trying to figure out why I couldn't apply a theme to my components with cross scope styling with css variable.
The documentation at: https://www.polymer-project.org/1.0/docs/devguide/styling.html outlines the basics and I followed it to the letter. It just wasn't working. The sample code shows the class definitions using css variables, like so:
<style> .title { color: var(--my-toolbar-title-color); } </style>
and
<style> .title{ --my-toolbar-title-color: green; } </style>
and I followed this syntax, it wasn't until I stumbled upon the API reference (http://polymer.github.io/polymer/) which showed the following syntax:
<style is="custom-style"> .title{ --my-toolbar-title-color: green; } </style>
Then everything magically worked!
Could I recommend the docs be updated with the requirement for <style is="custom-style"> for css variables shim to work?
The text was updated successfully, but these errors were encountered:
This issue was moved to Polymer/old-docs-site#1185
Sorry, something went wrong.
No branches or pull requests
I've just spent several hours trying to figure out why I couldn't apply a theme to my components with cross scope styling with css variable.
The documentation at: https://www.polymer-project.org/1.0/docs/devguide/styling.html outlines the basics and I followed it to the letter. It just wasn't working. The sample code shows the class definitions using css variables, like so:
and
and I followed this syntax, it wasn't until I stumbled upon the API reference (http://polymer.github.io/polymer/) which showed the following syntax:
Then everything magically worked!
Could I recommend the docs be updated with the requirement for <style is="custom-style"> for css variables shim to work?
The text was updated successfully, but these errors were encountered: