From 6e1688a714ea9e4a838250a488119ec4d8e32293 Mon Sep 17 00:00:00 2001 From: portikM Date: Tue, 26 Nov 2024 15:48:32 -0500 Subject: [PATCH] fix(kalert): slotted links default styling [KHCP-14152] --- sandbox/pages/SandboxAlert.vue | 44 ++++++++++++++++++++++++++------ src/components/KAlert/KAlert.vue | 16 ++++++++++-- 2 files changed, 50 insertions(+), 10 deletions(-) diff --git a/sandbox/pages/SandboxAlert.vue b/sandbox/pages/SandboxAlert.vue index 38a00cb5a2..606150761a 100644 --- a/sandbox/pages/SandboxAlert.vue +++ b/sandbox/pages/SandboxAlert.vue @@ -18,24 +18,52 @@ + > + This is info alert. + + Link + + + > + This is success alert. + + Link + + + > + This is warning alert. + + Link + + + > + This is danger alert. + + Link + + { @mixin kAlertAppearance( $backgroundColor: var(--kui-color-background-primary-weakest, $kui-color-background-primary-weakest), $textColor: var(--kui-color-text-primary, $kui-color-text-primary), - $dismissIconHoverColor: var(--kui-color-text-primary-strong, $kui-color-text-primary-strong)) { + $hoverColor: var(--kui-color-text-primary-strong, $kui-color-text-primary-strong)) { background-color: $backgroundColor; color: $textColor; .alert-dismiss-icon { &:hover, &:focus { - color: $dismissIconHoverColor !important; + color: $hoverColor !important; + } + } + + .alert-content { + .alert-message { + :slotted(a) { + color: $textColor; + + &:hover { + color: $hoverColor; + } + } } } }