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

Commit f0b192b

Browse files
committed
Move drop-shadow function to the end of the list
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]>
1 parent 641833a commit f0b192b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neupauer/tailwindcss-plugin-filter",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A Tailwind CSS plugin for controlling filter & backdrop-filter behaviour.",
55
"main": "src/index.js",
66
"repository": {

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ const filterPlugin = plugin(
2424
"blur(var(--tw-filter-blur, 0))",
2525
"brightness(var(--tw-filter-brightness, 1))",
2626
"contrast(var(--tw-filter-contrast, 1))",
27-
"drop-shadow(var(--tw-filter-drop-shadow, 0 0))",
2827
"grayscale(var(--tw-filter-grayscale, 0))",
2928
"hue-rotate(var(--tw-filter-hue-rotate, 0))",
3029
"invert(var(--tw-filter-invert, 0))",
3130
"saturate(var(--tw-filter-saturate, 1))",
3231
"sepia(var(--tw-filter-sepia, 0))",
32+
"drop-shadow(var(--tw-filter-drop-shadow, 0 0))",
3333
].join(" "),
3434
},
3535
".filter": {

0 commit comments

Comments
 (0)