Skip to content

Commit 850083e

Browse files
committed
map backdrop-blur-none and blur-none to instead of blur(0px)
1 parent ff6f085 commit 850083e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/corePlugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2596,7 +2596,7 @@ export let corePlugins = {
25962596
{
25972597
blur: (value) => {
25982598
return {
2599-
'--tw-blur': `blur(${value})`,
2599+
'--tw-blur': value.trim() === '' ? ' ' : `blur(${value})`,
26002600
'@defaults filter': {},
26012601
filter: cssFilterValue,
26022602
}
@@ -2751,7 +2751,7 @@ export let corePlugins = {
27512751
{
27522752
'backdrop-blur': (value) => {
27532753
return {
2754-
'--tw-backdrop-blur': `blur(${value})`,
2754+
'--tw-backdrop-blur': value.trim() === '' ? ' ' : `blur(${value})`,
27552755
'@defaults backdrop-filter': {},
27562756
'backdrop-filter': cssBackdropFilterValue,
27572757
}

stubs/config.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = {
7070
},
7171
blur: {
7272
0: '0',
73-
none: '0',
73+
none: '',
7474
sm: '4px',
7575
DEFAULT: '8px',
7676
md: '12px',

0 commit comments

Comments
 (0)