mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 02:40:35 +01:00
fix(Avatar): gray missing for chipColor
This commit is contained in:
@@ -121,7 +121,7 @@ export default defineNuxtModule<ModuleOptions>({
|
|||||||
}
|
}
|
||||||
|
|
||||||
tailwindConfig.safelist = tailwindConfig.safelist || []
|
tailwindConfig.safelist = tailwindConfig.safelist || []
|
||||||
tailwindConfig.safelist.push(...[{
|
tailwindConfig.safelist.push(...['bg-gray-400', {
|
||||||
pattern: new RegExp(`bg-(${safeColorsAsRegex})-(50|400|500)`)
|
pattern: new RegExp(`bg-(${safeColorsAsRegex})-(50|400|500)`)
|
||||||
}, {
|
}, {
|
||||||
pattern: new RegExp(`bg-(${safeColorsAsRegex})-500`),
|
pattern: new RegExp(`bg-(${safeColorsAsRegex})-500`),
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export default defineComponent({
|
|||||||
type: String,
|
type: String,
|
||||||
default: null,
|
default: null,
|
||||||
validator (value: string) {
|
validator (value: string) {
|
||||||
return appConfig.ui.colors.includes(value)
|
return ['gray', ...appConfig.ui.colors].includes(value)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chipVariant: {
|
chipVariant: {
|
||||||
|
|||||||
Reference in New Issue
Block a user