Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Add class for clear topic button in compose.
Pratik Chandafe1134c495bd
diff --git a/web/styles/compose.css b/web/styles/compose.cssindex 70e75738aac..ca63ed60ca8 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -1102,7 +1102,7 @@ textarea.new_message_textarea {}#stream_message_recipient_topic,- #recipient_box_clear_topic_button {+ .compose-new-recipient-button {background: none;border: none;@@ -1155,7 +1155,7 @@ textarea.new_message_textarea {}/* Styles for new conversation button in the recipient_box */- #recipient_box_clear_topic_button {+ .compose-new-recipient-button {grid-area: topic-clear-button;/* Set the border radius smaller, relative to the parent */border-radius: 2px;@@ -1180,12 +1180,11 @@ textarea.new_message_textarea {}#stream_message_recipient_topic:not(.empty-topic-display):placeholder-shown- ~ #recipient_box_clear_topic_button {+ ~ .compose-new-recipient-button {visibility: hidden;}- #stream_message_recipient_topic:disabled- ~ #recipient_box_clear_topic_button {+ #stream_message_recipient_topic:disabled ~ .compose-new-recipient-button {visibility: hidden;}/* This will reset the bootstrap margin-bottom: 10px value for the inputs */@@ -1264,7 +1263,7 @@ textarea.new_message_textarea {transition-property: color;}- #recipient_box_clear_topic_button {+ .compose-new-recipient-button {transition: var(--compose-recipient-row-transition);transition-delay: var(--compose-recipient-row-transition-delay);transition-property: color, background-color, opacity;@@ -1342,7 +1341,7 @@ textarea.new_message_textarea {}}- #recipient_box_clear_topic_button:hover {+ .compose-new-recipient-button:hover {opacity: 1;}}diff --git a/web/templates/compose.hbs b/web/templates/compose.hbsindex 25c8860673b..a1b82911bec 100644--- a/web/templates/compose.hbs+++ b/web/templates/compose.hbs@@ -67,7 +67,7 @@<span id="topic-not-mandatory-placeholder" class="placeholder">{{> topic_not_mandatory_placeholder_text empty_string_topic_display_name=empty_string_topic_display_name}}</span>- <button type="button" id="recipient_box_clear_topic_button" class="tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'New topic' }}" tabindex="-1">+ <button type="button" id="recipient_box_clear_topic_button" class="compose-new-recipient-button tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'New topic' }}" tabindex="-1"><i class="zulip-icon zulip-icon-square-plus"></i></button></div>