Skip to content

Commit 965048c

Browse files
authored
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.
1 parent 3da9d61 commit 965048c

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

Diff for: packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap

-7
Original file line numberDiff line numberDiff line change
@@ -7504,13 +7504,6 @@ exports[`getClassList 1`] = `
75047504

75057505
exports[`getVariants 1`] = `
75067506
[
7507-
{
7508-
"hasDash": true,
7509-
"isArbitrary": false,
7510-
"name": "force",
7511-
"selectors": [Function],
7512-
"values": [],
7513-
},
75147507
{
75157508
"hasDash": true,
75167509
"isArbitrary": false,

Diff for: packages/tailwindcss/src/variants.test.ts

-9
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ import { Compounds, compoundsForSelectors } from './variants'
66

77
const css = String.raw
88

9-
test('force', async () => {
10-
expect(await run(['force:flex'])).toMatchInlineSnapshot(`
11-
".force\\:flex {
12-
display: flex;
13-
}"
14-
`)
15-
expect(await run(['force/foo:flex'])).toEqual('')
16-
})
17-
189
test('*', async () => {
1910
expect(await run(['*:flex'])).toMatchInlineSnapshot(`
2011
":is(.\\*\\:flex > *) {

Diff for: packages/tailwindcss/src/variants.ts

-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ export function createVariants(theme: Theme): Variants {
365365
)
366366
}
367367

368-
variants.static('force', () => {}, { compounds: Compounds.Never })
369368
staticVariant('*', [':is(& > *)'], { compounds: Compounds.Never })
370369
staticVariant('**', [':is(& *)'], { compounds: Compounds.Never })
371370

0 commit comments

Comments
 (0)