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.

message_row: Add variable for color on sender hover.

Karl Stolleyd1b790cac1e5
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 1c8cbb5d70d..cf22f0f90fa 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -267,6 +267,9 @@
--color-text-message-default: hsl(0deg 0% 15%);
--color-text-message-view-header: hsl(0deg 0% 20% / 100%);
--color-text-message-header: hsl(0deg 0% 15%);
+ /* Light and dark mode both use the same hover color on
+ sender names. */
+ --color-text-sender-name-hover: hsl(200deg 100% 40%);
--color-text-dropdown-input: hsl(0deg 0% 13.33%);
--color-text-self-direct-mention: hsl(240deg 52% 45% / 100%);
--color-text-self-group-mention: hsl(183deg 52% 26% / 100%);
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index e229fbd705f..0534099bf5b 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -438,7 +438,7 @@
cursor: pointer;
/* TODO: Refactor the teetering nested classes
above so that !important can be removed. */
- color: hsl(200deg 100% 40%) !important;
+ color: var(--color-text-sender-name-hover) !important;
}
.message-avatar {