fix(Notification): class priority for icon color

This commit is contained in:
Benjamin Canac
2023-06-09 11:40:46 +02:00
parent 57f95102e2
commit 07f7855a26
2 changed files with 2 additions and 2 deletions

View File

@@ -776,7 +776,7 @@ const notification = {
padding: 'p-4',
ring: 'ring-1 ring-gray-200 dark:ring-gray-800',
icon: {
base: 'flex-shrink-0 w-5 h-5 text-gray-400 dark:text-gray-500',
base: 'flex-shrink-0 w-5 h-5',
color: 'text-{color}-500 dark:text-{color}-400'
},
avatar: {

View File

@@ -134,7 +134,7 @@ export default defineComponent({
const iconClass = computed(() => {
return classNames(
ui.value.icon.base,
appConfig.ui.colors.includes(props.color) && ui.value.icon.color?.replaceAll('{color}', props.color)
ui.value.icon.color?.replaceAll('{color}', props.color)
)
})