From 181a1450757590b74a58a796a0cc3e2e9927045c Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 2 Nov 2023 17:03:39 +0100 Subject: [PATCH] remove `contrast-custom` variant --- src/corePlugins.js | 1 - .../__snapshots__/prefersContrastVariants.test.js.snap | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index b11ab6508608..6da082425fb8 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -459,7 +459,6 @@ export let variantPlugins = { prefersContrastVariants: ({ addVariant }) => { addVariant('contrast-more', '@media (prefers-contrast: more)') addVariant('contrast-less', '@media (prefers-contrast: less)') - addVariant('contrast-custom', '@media (prefers-contrast: custom)') }, forcedColorsVariants: ({ addVariant }) => { diff --git a/tests/plugins/variants/__snapshots__/prefersContrastVariants.test.js.snap b/tests/plugins/variants/__snapshots__/prefersContrastVariants.test.js.snap index c13bc3311bb0..8d5d2ea1c7d0 100644 --- a/tests/plugins/variants/__snapshots__/prefersContrastVariants.test.js.snap +++ b/tests/plugins/variants/__snapshots__/prefersContrastVariants.test.js.snap @@ -13,11 +13,5 @@ exports[`should test the 'prefersContrastVariants' plugin 1`] = ` display: flex; } } - -@media (prefers-contrast: custom) { - .contrast-custom\\:flex { - display: flex; - } -} " `;