From 9df11283745eaa63946acd90d73ac4625e4f1a4a Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 13 Aug 2025 14:56:35 -0400 Subject: [PATCH] UX: fix Horizon disabled new topic button (#34293) Fixes a minor styling regression with the disabled new topic button in the sidebar Before: image After: image --- themes/horizon/scss/buttons.scss | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/themes/horizon/scss/buttons.scss b/themes/horizon/scss/buttons.scss index 4b2b39facbe..d862b0af475 100644 --- a/themes/horizon/scss/buttons.scss +++ b/themes/horizon/scss/buttons.scss @@ -6,17 +6,26 @@ transition: none; } -.sidebar-new-topic-button__wrapper .topic-drafts-menu-trigger.btn.no-text { - background: var(--accent-color); - - &:hover, - &:focus-visible { - background: oklch(from var(--accent-color) 40% c h) !important; - box-shadow: none; +.sidebar-new-topic-button__wrapper { + &:has(.fk-d-tooltip__trigger) { + #create-topic.btn { + border-radius: var(--d-button-border-radius) 0 0 + var(--d-button-border-radius); + } } - .d-icon { - color: var(--accent-text-color); + .topic-drafts-menu-trigger.btn.no-text { + background: var(--accent-color); + + &:hover, + &:focus-visible { + background: oklch(from var(--accent-color) 40% c h) !important; + box-shadow: none; + } + + .d-icon { + color: var(--accent-text-color); + } } }