mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore: disabled variant is now by default
This commit is contained in:
13
src/index.ts
13
src/index.ts
@@ -142,18 +142,7 @@ export default defineNuxtModule<UiOptions>({
|
||||
}],
|
||||
...rules
|
||||
],
|
||||
variants: [
|
||||
// disabled:
|
||||
(matcher) => {
|
||||
if (!matcher.startsWith('disabled:')) { return matcher }
|
||||
return {
|
||||
// slice `disabled:` prefix and passed to the next variants and rules
|
||||
matcher: matcher.slice(9),
|
||||
selector: s => `${s}:disabled`
|
||||
}
|
||||
},
|
||||
...variants
|
||||
],
|
||||
variants,
|
||||
layers: {
|
||||
icons: 0,
|
||||
default: 1,
|
||||
|
||||
Reference in New Issue
Block a user