From 8c88ef13a00d297650456d134230cd94038a33bf Mon Sep 17 00:00:00 2001 From: lukicenturi Date: Wed, 19 Jun 2024 16:44:31 +0700 Subject: [PATCH] fix(Alert): improve visiblity for some alerts --- src/components/alerts/Alert.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/alerts/Alert.vue b/src/components/alerts/Alert.vue index f14df7f..00040d7 100644 --- a/src/components/alerts/Alert.vue +++ b/src/components/alerts/Alert.vue @@ -152,6 +152,19 @@ const slots = useSlots(); } } } + + @if index((warning, success, info), $color) { + &.#{$color} { + &.filled { + .icon, + .texts, + .action, + .close { + @apply text-rui-light-text #{!important}; + } + } + } + } } &.outlined { @@ -196,7 +209,7 @@ const slots = useSlots(); .texts, .action, .close { - @apply text-white #{!important}; + @apply text-rui-dark-text #{!important}; } }