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

Provide a convenience method for setting customStyle and calling updateStyles #1915

Closed
sorvell opened this issue Jun 19, 2015 · 0 comments
Closed
Assignees

Comments

@sorvell
Copy link
Contributor

sorvell commented Jun 19, 2015

Polymer provides a customStyle object which can be used to set css custom properties. To apply these values, updateStyles must be called. Since this is typically done in lockstep, there should be a 1 step option, e.g.:

this.updateStyles({'-foo': 'red'});
// short for
this.customStyles['--foo'] = 'red';
this.updateStyles();
@sorvell sorvell self-assigned this Jun 19, 2015
sorvell pushed a commit that referenced this issue Jun 19, 2015
…t changes to customStyle are recognized.

Fixes #1915: Include a `customStyleProperties` argument to `updateStyles` for convenience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant