From df43bb124c9e7cae177b9dcab4bf3c5af2bb7058 Mon Sep 17 00:00:00 2001 From: Cal Moody Date: Fri, 29 Dec 2023 06:32:40 -0500 Subject: [PATCH] [Glitch] Fix destructive actions in dropdowns not using error color in light theme Port 3599622b5bcdfd44f7df664428a749896fde319e to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/styles/mastodon-light/diff.scss | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/javascript/flavours/glitch/styles/mastodon-light/diff.scss b/app/javascript/flavours/glitch/styles/mastodon-light/diff.scss index 456252750b..740d7222f8 100644 --- a/app/javascript/flavours/glitch/styles/mastodon-light/diff.scss +++ b/app/javascript/flavours/glitch/styles/mastodon-light/diff.scss @@ -296,10 +296,15 @@ html { } &__item { + color: $darker-text-color; + + &--dangerous { + color: $error-value-color; + } + a, button { background: $white; - color: $darker-text-color; } } } @@ -311,9 +316,9 @@ html { .privacy-dropdown__option.active .privacy-dropdown__option__content strong, .privacy-dropdown__option:hover .privacy-dropdown__option__content, .privacy-dropdown__option:hover .privacy-dropdown__option__content strong, -.dropdown-menu__item a:active, -.dropdown-menu__item a:focus, -.dropdown-menu__item a:hover, +.dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:active, +.dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:focus, +.dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:hover, .actions-modal ul li:not(:empty) a.active, .actions-modal ul li:not(:empty) a.active button, .actions-modal ul li:not(:empty) a:active,