From 62d7b526425cc18bcb63f907898b97a73cb0a833 Mon Sep 17 00:00:00 2001 From: Heather Date: Thu, 10 Oct 2024 14:39:30 -0400 Subject: [PATCH] fix z-index of color switcher --- src/styles/color-switcher.scss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/styles/color-switcher.scss b/src/styles/color-switcher.scss index 9e6fb70599d..86428dfff31 100644 --- a/src/styles/color-switcher.scss +++ b/src/styles/color-switcher.scss @@ -23,10 +23,11 @@ &:hover { background-color: var(--amplify-colors-primary-10); } - } - .amplify-togglebutton--pressed { - color: var(--amplify-colors-font-primary); - border-color: var(--amplify-colors-neutral-100); - background-color: var(--amplify-colors-primary-10); + &.amplify-togglebutton--pressed { + color: var(--amplify-colors-font-primary); + border-color: var(--amplify-colors-neutral-100); + background-color: var(--amplify-colors-primary-10); + z-index: 1; + } } }