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.

status_modal: Correct light-mode background color.

Karl Stolleyc5f0a5daa159
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 63db068871b..e81b3806dda 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -1399,6 +1399,15 @@
hsl(0deg 0% 80%),
hsl(0deg 0% 0% / 60%)
);
+ /* TODO: Light mode uses browser-default white
+ backgrounds; we should extend the use of this
+ color variable to 1) explicitly set the
+ background color of inputs, and 2) clean up a
+ lingering stack of selectors in dark_theme.css. */
+ --color-background-input: light-dark(
+ hsl(0deg 0% 100%),
+ hsl(0deg 0% 0% / 20%)
+ );
/* Link colors */
--color-text-link: light-dark(hsl(210deg 94% 42%), hsl(200deg 100% 50%));
--color-text-link-decoration: light-dark(
diff --git a/web/styles/user_status.css b/web/styles/user_status.css
index 95af09566bb..0551e56377a 100644
--- a/web/styles/user_status.css
+++ b/web/styles/user_status.css
@@ -11,6 +11,7 @@
border: 1px solid;
border-color: hsl(0deg 0% 0% / 60%);
border-radius: 5px;
+ background-color: var(--color-background-input);
& input.user-status {
grid-area: search-input;
@@ -18,6 +19,9 @@
border: none;
outline: none;
box-shadow: none;
+ /* Transparent here is to allow the input
+ background set on the wrapper to show
+ through. */
background-color: transparent;
margin: 0;