From b8bd3b07ef9aa2027af838445a90e4bc752aa564 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 23 May 2023 10:12:03 +0200 Subject: [PATCH] DEV: regroups composer button code (#21690) This commit makes it easier to ensure each button have a similar behavior: hover, disabled, focus... It also removes some dead code (__inline-button) and fixes a bug where the emoji button didnt have the right un-focused color (it was more visible than it should. --- .../discourse/components/chat-composer.hbs | 6 +- .../common/chat-composer-dropdown.scss | 15 --- .../stylesheets/common/chat-composer.scss | 96 +++++++++---------- 3 files changed, 47 insertions(+), 70 deletions(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs index 4402a8d2760..7540dfed5ba 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs @@ -21,7 +21,7 @@ (if this.isFocused "is-focused") (if this.pane.sending "is-sending") (if this.sendEnabled "is-send-enabled" "is-send-disabled") - (if this.disabled "is-disabled") + (if this.disabled "is-disabled" "is-enabled") }} {{did-update this.didUpdateMessage this.currentMessage}} {{did-update this.didUpdateInReplyTo this.currentMessage.inReplyTo}} @@ -73,7 +73,7 @@