Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
Move drop-shadow function to the end of the list
Browse files Browse the repository at this point in the history
It seems that Safari does not recognize the drop-shadow function in the backdrop-filter property. That caused an issue that the `.backdrop` utility did not work in Safari. Moving that function to the end of the list resolves this issue.

Signed-off-by: Peter Neupauer <[email protected]>
  • Loading branch information
neupauer committed Feb 2, 2021
1 parent 641833a commit f0b192b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neupauer/tailwindcss-plugin-filter",
"version": "1.0.0",
"version": "1.0.1",
"description": "A Tailwind CSS plugin for controlling filter & backdrop-filter behaviour.",
"main": "src/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const filterPlugin = plugin(
"blur(var(--tw-filter-blur, 0))",
"brightness(var(--tw-filter-brightness, 1))",
"contrast(var(--tw-filter-contrast, 1))",
"drop-shadow(var(--tw-filter-drop-shadow, 0 0))",
"grayscale(var(--tw-filter-grayscale, 0))",
"hue-rotate(var(--tw-filter-hue-rotate, 0))",
"invert(var(--tw-filter-invert, 0))",
"saturate(var(--tw-filter-saturate, 1))",
"sepia(var(--tw-filter-sepia, 0))",
"drop-shadow(var(--tw-filter-drop-shadow, 0 0))",
].join(" "),
},
".filter": {
Expand Down

0 comments on commit f0b192b

Please sign in to comment.