Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

select_recipient_widget: Use "button" tag instead of "div".

Satyam Bansalfad5c88aa94f
diff --git a/web/styles/compose.css b/web/styles/compose.css
index 7e7b9e720ba..2a4bf96e070 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -526,6 +526,7 @@ input.recipient_box {
#compose_select_recipient_widget {
border-radius: 0 4px 4px 0;
width: auto;
+ outline: none;
}
#stream_message_recipient_topic.recipient_box {
diff --git a/web/templates/compose.hbs b/web/templates/compose.hbs
index 60a762d8494..3623f30f329 100644
--- a/web/templates/compose.hbs
+++ b/web/templates/compose.hbs
@@ -58,12 +58,12 @@
<a role="button" class="narrow_to_compose_recipients zulip-icon zulip-icon-arrow-left-circle order-1" data-tooltip-template-id="narrow_to_compose_recipients_tooltip"></a>
<div id="compose_recipient_selection_dropdown" class="new-style" tabindex="0">
<div class="stream_header_colorblock"></div>
- <div id="compose_select_recipient_widget" class="dropdown-widget-button" role="button">
+ <button id="compose_select_recipient_widget" class="dropdown-widget-button" type="button">
<span id="compose_select_recipient_name">
{{t 'Select a stream'}}
</span>
<i class="fa fa-chevron-down"></i>
- </div>
+ </button>
</div>
<i class="fa fa-angle-right" aria-hidden="true"></i>
<input type="text" class="recipient_box" name="stream_message_recipient_topic" id="stream_message_recipient_topic" maxlength="{{ max_topic_length }}" value="" placeholder="{{t 'Topic' }}" autocomplete="off" tabindex="0" aria-label="{{t 'Topic' }}" />