mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +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
|
...rules
|
||||||
],
|
],
|
||||||
variants: [
|
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
|
|
||||||
],
|
|
||||||
layers: {
|
layers: {
|
||||||
icons: 0,
|
icons: 0,
|
||||||
default: 1,
|
default: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user