mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Remove the force variant (#16007)
This PR will remove the `force` variant. This was an experiment that we accidentally shipped, but there is no documentation nor is there any intellisense autocompletion for it.
This commit is contained in:
parent
3da9d61371
commit
965048c01a
@ -7504,13 +7504,6 @@ exports[`getClassList 1`] = `
|
||||
|
||||
exports[`getVariants 1`] = `
|
||||
[
|
||||
{
|
||||
"hasDash": true,
|
||||
"isArbitrary": false,
|
||||
"name": "force",
|
||||
"selectors": [Function],
|
||||
"values": [],
|
||||
},
|
||||
{
|
||||
"hasDash": true,
|
||||
"isArbitrary": false,
|
||||
|
||||
@ -6,15 +6,6 @@ import { Compounds, compoundsForSelectors } from './variants'
|
||||
|
||||
const css = String.raw
|
||||
|
||||
test('force', async () => {
|
||||
expect(await run(['force:flex'])).toMatchInlineSnapshot(`
|
||||
".force\\:flex {
|
||||
display: flex;
|
||||
}"
|
||||
`)
|
||||
expect(await run(['force/foo:flex'])).toEqual('')
|
||||
})
|
||||
|
||||
test('*', async () => {
|
||||
expect(await run(['*:flex'])).toMatchInlineSnapshot(`
|
||||
":is(.\\*\\:flex > *) {
|
||||
|
||||
@ -365,7 +365,6 @@ export function createVariants(theme: Theme): Variants {
|
||||
)
|
||||
}
|
||||
|
||||
variants.static('force', () => {}, { compounds: Compounds.Never })
|
||||
staticVariant('*', [':is(& > *)'], { compounds: Compounds.Never })
|
||||
staticVariant('**', [':is(& *)'], { compounds: Compounds.Never })
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user