Skip to content

Commit

Permalink
style(ui): [toaster] add colors for different states
Browse files Browse the repository at this point in the history
Added different icon colors for different toast types e.g. success|warning|info|error, so it's easier to distinguish if something failed, or it's some general information or tip message

Signed-off-by: Danil Kostromin <[email protected]>
  • Loading branch information
Danil Kostromin committed Jan 15, 2024
1 parent 5bd5778 commit e622484
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const Toaster = ({ ...props }: ToasterProps) => {
actionButton:
'group-[.toast]:bg-primary group-[.toast]:text-white group-[.toast]:rounded-md',
cancelButton:
'group-[.toast]:bg-bg-error group-[.toast]:text-white group-[.toast]:rounded-md'
'group-[.toast]:bg-bg-error group-[.toast]:text-white group-[.toast]:rounded-md',
success: 'group-[.toaster_[data-icon]]:text-bg-ok',
error: 'group-[.toaster_[data-icon]]:text-bg-error',
warning: 'group-[.toaster_[data-icon]]:text-bg-warning',
info: 'group-[.toaster_[data-icon]]:text-primary'
}
}}
{...props}
Expand Down

0 comments on commit e622484

Please sign in to comment.