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:
Robin Malfait 2025-01-29 15:32:37 +01:00 committed by GitHub
parent 3da9d61371
commit 965048c01a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 17 deletions

View File

@ -7504,13 +7504,6 @@ exports[`getClassList 1`] = `
exports[`getVariants 1`] = `
[
{
"hasDash": true,
"isArbitrary": false,
"name": "force",
"selectors": [Function],
"values": [],
},
{
"hasDash": true,
"isArbitrary": false,

View File

@ -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 > *) {

View File

@ -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 })