Skip to content

Commit

Permalink
fix(icons): adjust mask mode icon css properties order
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungzl committed Dec 29, 2022
1 parent 84a3b3d commit 3772cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preset-icons/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ export function createPresetIcons(lookupIconLoader: (options: IconsOptions) => P
// Thanks to https://codepen.io/noahblon/post/coloring-svgs-in-css-background-images
return {
'--un-icon': url,
'mask': 'var(--un-icon) no-repeat',
'mask-size': '100% 100%',
'-webkit-mask': 'var(--un-icon) no-repeat',
'mask': 'var(--un-icon) no-repeat',
'-webkit-mask-size': '100% 100%',
'mask-size': '100% 100%',
'background-color': 'currentColor',
// for Safari https://github.com/elk-zone/elk/pull/264
'color': 'inherit',
Expand Down

0 comments on commit 3772cdf

Please sign in to comment.