From 17c068d22a15f740a5f7428847d8cad367a3373d Mon Sep 17 00:00:00 2001 From: tischsoic Date: Wed, 16 Sep 2026 11:55:01 +0200 Subject: [PATCH] IBX-12442: Stopped the global link colour from overriding design-system buttons The global `a:active, a:focus, a:hover` rule is specificity (0,1,1) and outranks the single-class .ids-btn, so any design-system button rendered as an lost its label colour once focused and no longer hovered. Scoped with :where(:not(.ids-btn)) to keep the original specificity while excluding DS buttons. Co-Authored-By: Claude --- src/bundle/Resources/public/scss/_general.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bundle/Resources/public/scss/_general.scss b/src/bundle/Resources/public/scss/_general.scss index 975bda1d1..8dca95d7f 100644 --- a/src/bundle/Resources/public/scss/_general.scss +++ b/src/bundle/Resources/public/scss/_general.scss @@ -22,10 +22,12 @@ a { color: $ibexa-color-dark-300; } - &:active, - &:focus, - &:hover { - color: $ibexa-color-primary; + &:where(:not(.ids-btn)) { + &:active, + &:focus, + &:hover { + color: $ibexa-color-primary; + } } &:focus {