Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Restyle compose send button with logo colours.
Aman Agrawal2e196fd5d396
diff --git a/static/styles/app_components.css b/static/styles/app_components.cssindex 61ade677771..2e7ab4242a5 100644--- a/static/styles/app_components.css+++ b/static/styles/app_components.css@@ -563,3 +563,22 @@ div.overlay {display: unset;}}++.animated-purple-button {+ color: hsl(0, 0%, 100%);+ transition: all 80ms linear;+ box-shadow: none;+ /* This color just passes WCAG AA */+ background-color: hsl(240, 96%, 68%);+ cursor: pointer;+ border: none;+ border-radius: 4px;+ text-align: center;+ white-space: nowrap;++ &:hover {+ /* This color passes WCAG AAA */+ background-color: hsl(240, 41%, 50%);+ box-shadow: 0 1px 4px hsl(0, 0%, 0%, 0.3);+ }+}diff --git a/static/styles/compose.css b/static/styles/compose.cssindex bfb5a566d6a..6c2fda5b4a4 100644--- a/static/styles/compose.css+++ b/static/styles/compose.css@@ -406,20 +406,12 @@ input.recipient_box {this element appears before its proper position in the DOM and is configuredto float right, so that tabbing from the compose box goes here and thento the message controls to its left, to ensure "Tab then Enter" sends messages. */- border-radius: 4px;padding-top: 3px;padding-bottom: 3px;margin-bottom: 0;font-weight: 600;- border: 1px solid hsl(170, 68%, 41%);- background-color: hsl(170, 48%, 54%);- color: hsl(0, 0%, 100%);float: right;font-size: 0.9em;-- &:focus {- box-shadow: 0 0 10px hsl(170, 48%, 54%), 0 0 5px hsl(170, 48%, 54%);- }}#send_controls {diff --git a/static/templates/compose.hbs b/static/templates/compose.hbsindex 93a8f8fc3ce..40a2f89f60f 100644--- a/static/templates/compose.hbs+++ b/static/templates/compose.hbs@@ -95,7 +95,7 @@</div><div class="drag"></div><div id="below-compose-content">- <button type="submit" id="compose-send-button" class="button small send_message" title="{{t 'Send' }} (Ctrl + Enter)">{{t 'Send' }}</button>+ <button type="submit" id="compose-send-button" class="button small send_message animated-purple-button" title="{{t 'Send' }} (Ctrl + Enter)">{{t 'Send' }}</button>{{> compose_control_buttons }}<span id="sending-indicator"></span><div id="send_controls" class="new-style">