Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message: Remove ineffective `auto-select` class.
Aman Agrawal6f6e83d2e2ba
diff --git a/web/src/copy_and_paste.js b/web/src/copy_and_paste.jsindex a2914f35977..5a8b1337fad 100644--- a/web/src/copy_and_paste.js+++ b/web/src/copy_and_paste.js@@ -132,7 +132,7 @@ export function copy_handler() {// `Ctrl+C` in Zulip (note that this is totally independent of the// "select region" copy behavior on Linux; that is handled// entirely by the browser, our HTML layout, and our use of the- // no-select/auto-select CSS classes). We put considerable effort+ // no-select CSS classes). We put considerable effort// into producing a nice result that pastes well into other tools.// Our user-facing specification is the following://diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 6e021996ee2..0b613f2bf50 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -1406,7 +1406,6 @@.new-style label.checkbox input[type="checkbox"]:focus ~ span,i.fa:focus,i.zulip-icon:focus,- .auto-select:focus,[role="button"]:focus {outline-color: hsl(0deg 0% 67%);}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex c69e81025b4..a8a3c3a8846 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -387,10 +387,6 @@ pre {user-select: none;}-.auto-select {- user-select: auto;-}-.text-select {user-select: text;}@@ -875,7 +871,6 @@ button:focus,.new-style label.checkbox input[type="checkbox"]:focus ~ span,i.fa:focus,i.zulip-icon:focus-visible,-.auto-select:focus,[role="button"]:focus {outline: 2px solid var(--color-outline-focus);/* TODO: change solid to auto once the Chromium bug #1105822 is fixed */diff --git a/web/templates/edited_notice.hbs b/web/templates/edited_notice.hbsindex 5540ef5b1c8..bb745bffd99 100644--- a/web/templates/edited_notice.hbs+++ b/web/templates/edited_notice.hbs@@ -1,13 +1,13 @@{{#if msg/local_edit_timestamp}}-<div class="message_edit_notice auto-select" data-tippy-content="{{t 'Last edited {last_edit_timestr}' }}">+<div class="message_edit_notice" data-tippy-content="{{t 'Last edited {last_edit_timestr}' }}">{{t "SAVING" }}</div>{{else if moved}}-<div class="message_edit_notice auto-select" data-tippy-content="{{t 'Last moved {last_edit_timestr}' }}">+<div class="message_edit_notice" data-tippy-content="{{t 'Last moved {last_edit_timestr}' }}">{{t "MOVED" }}</div>{{else}}-<div class="message_edit_notice auto-select" data-tippy-content="{{t 'Last edited {last_edit_timestr}' }}">+<div class="message_edit_notice" data-tippy-content="{{t 'Last edited {last_edit_timestr}' }}">{{t "EDITED" }}</div>{{/if}}diff --git a/web/templates/message_body.hbs b/web/templates/message_body.hbsindex 903469b3083..7b4fc2108df 100644--- a/web/templates/message_body.hbs+++ b/web/templates/message_body.hbs@@ -3,7 +3,7 @@{{/if}}<span class="message_sender">{{#if include_sender}}- <span class="sender_info_hover sender_name auto-select" role="button" tabindex="0">+ <span class="sender_info_hover sender_name" role="button" tabindex="0"><span class="view_user_card_tooltip inline-status-emoji" data-tooltip-template-id="view-user-card-tooltip-template">{{msg/sender_full_name}}{{#unless status_message}}@@ -15,7 +15,7 @@<i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>{{/if}}{{#if status_message}}- <span class="rendered_markdown status-message auto-select">{{rendered_markdown status_message}}</span>+ <span class="rendered_markdown status-message">{{rendered_markdown status_message}}</span>{{#if edited_status_msg}}{{> edited_notice}}{{/if}}