Skip to content

Commit

Permalink
fix(Avatar): gray missing for chipColor
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed May 10, 2023
1 parent 3df917a commit fd4c80a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default defineNuxtModule<ModuleOptions>({
}

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`),
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit fd4c80a

Please sign in to comment.