Skip to content

Commit

Permalink
fix(css): add prefixed values before standard ones
Browse files Browse the repository at this point in the history
Second part of #468 : values can be prefixed too.
  • Loading branch information
cyrilletuzi authored and ThomasBurleson committed Jan 4, 2018
1 parent 5076b3b commit 0c1bf4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/style-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export function applyStyleToElements(renderer: Renderer2,
export function applyMultiValueStyleToElement(styles: {}, element: any, renderer: Renderer2) {
Object.keys(styles).sort().forEach(key => {
const values = Array.isArray(styles[key]) ? styles[key] : [styles[key]];
values.sort();
for (let value of values) {
renderer.setStyle(element, key, value);
}
Expand Down

0 comments on commit 0c1bf4a

Please sign in to comment.