frontend-monorepo-607: Added correct text colours to intent backgrounds (#614)

This commit is contained in:
Sam Keen 2022-06-22 12:46:54 +01:00 committed by GitHub
parent c254c87a26
commit fca92bbdec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,8 @@ export const getIntentShadow = (intent?: Intent) => {
export const getVariantBackground = (variant?: Intent) => {
return {
'bg-black dark:bg-white': variant === Intent.None,
'bg-black text-white dark:bg-white dark:text-black':
variant === Intent.None,
'bg-vega-pink text-black dark:bg-vega-yellow dark:text-black-normal':
variant === Intent.Primary,
'bg-danger text-white': variant === Intent.Danger,