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

Create a customStyle api for document custom properties #1879

Closed
sorvell opened this issue Jun 16, 2015 · 1 comment
Closed

Create a customStyle api for document custom properties #1879

sorvell opened this issue Jun 16, 2015 · 1 comment
Assignees
Labels

Comments

@sorvell
Copy link
Contributor

sorvell commented Jun 16, 2015

An element can set a custom style property via this.customStyle['--foo'] = 'red'; but there is currently no way to do this in the document scope. Currently, a <style is="custom-style"> element must be created and added to the document. It would more convenient for example, to do this: Polymer.StyleDefaults.customStyle['--foo'] = 'red';

@sorvell
Copy link
Contributor Author

sorvell commented Jun 24, 2015

Fixed via #1916

@sorvell sorvell closed this as completed Jun 24, 2015
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