From fd4c80acd4c70c7d378ebf780cd843115d8f434d Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 10 May 2023 11:59:16 +0200 Subject: [PATCH] fix(Avatar): `gray` missing for `chipColor` --- src/module.ts | 2 +- src/runtime/components/elements/Avatar.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.ts b/src/module.ts index 70e5fb45..8ec74d02 100644 --- a/src/module.ts +++ b/src/module.ts @@ -121,7 +121,7 @@ export default defineNuxtModule({ } 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})-500`), diff --git a/src/runtime/components/elements/Avatar.vue b/src/runtime/components/elements/Avatar.vue index 7492d4a4..9eb2440f 100644 --- a/src/runtime/components/elements/Avatar.vue +++ b/src/runtime/components/elements/Avatar.vue @@ -45,7 +45,7 @@ export default defineComponent({ type: String, default: null, validator (value: string) { - return appConfig.ui.colors.includes(value) + return ['gray', ...appConfig.ui.colors].includes(value) } }, chipVariant: {