Skip to content

Commit

Permalink
fix(Notification): class priority for icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 9, 2023
1 parent 57f9510 commit 07f7855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/overlays/Notification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
})
Expand Down

0 comments on commit 07f7855

Please sign in to comment.