Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use no value instead of blur(0px) for backdrop-blur-none and blur-none utilities #13830

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

RobinMalfait
Copy link
Member

This PR maps the values for backdrop-blur-none and blur-none to no value at all instead of blur(0px). This makes sure that filter is completely gone.

    .backdrop-blur-none {
-     --tw-backdrop-blur: blur(0);
+     --tw-backdrop-blur: ;
      backdrop-filter: var(--tw-backdrop-blur)
        var(--tw-backdrop-brightness) var(--tw-backdrop-contrast)
        var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate)
        var(--tw-backdrop-invert) var(--tw-backdrop-opacity)
        var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    }
    .blur-none {
-     --tw-blur: blur(0);
+     --tw-blur: ;
      filter: var(--tw-blur) var(--tw-brightness)
        var(--tw-contrast) var(--tw-grayscale)
        var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
        var(--tw-sepia) var(--tw-drop-shadow);
    }

Fixes: #13821

@RobinMalfait RobinMalfait changed the title Remove value for backdrop-blur-none and blur-none instead of blur(0px) Use no value instead of blur(0px) for backdrop-blur-none and blur-none utilities Jun 13, 2024
tests/source-maps.test.js Outdated Show resolved Hide resolved
@RobinMalfait RobinMalfait merged commit eef91c9 into master Jun 13, 2024
13 checks passed
@RobinMalfait RobinMalfait deleted the fix/issue-13821-v3 branch June 13, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants