Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inputs: Fix input color values deviating from the design.
Sayam Samal5e92a57adb85
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 401b05a7d9b..5459ede86c8 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -2629,28 +2629,24 @@);/* Inputs */- --color-text-input: light-dark(- color-mix(in oklch, hsl(0deg 0% 15%) 50%, transparent),- color-mix(in oklch, hsl(0deg 0% 83%) 50%, transparent)- );- --color-text-input-focus: light-dark(hsl(0deg 0% 15%), hsl(0deg 0% 83%));+ --color-text-input: light-dark(hsl(0deg 0% 14%), hsl(0deg 0% 95%));/* TODO: Light mode uses browser-default whitebackgrounds; we should extend the use of thiscolor variable to 1) explicitly set thebackground color of inputs, and 2) clean up alingering stack of selectors in dark_theme.css. */- --color-background-input: light-dark(hsl(0deg 0% 100%), hsl(220deg 6% 10%));+ --color-background-input: light-dark(hsl(0deg 0% 100%), hsl(225deg 6% 10%));--color-background-input-focus: light-dark(hsl(0deg 0% 100%),- hsl(240deg 6% 7%)+ hsl(225deg 6% 7%));--color-border-input: light-dark(color-mix(in oklch, hsl(229deg 22% 10%) 30%, transparent),color-mix(in oklch, hsl(0deg 0% 100%) 20%, transparent));--color-border-input-hover: light-dark(- color-mix(in oklch, hsl(229deg 22% 10%) 30%, transparent),- color-mix(in oklch, hsl(0deg 0% 100%) 20%, transparent)+ color-mix(in oklch, hsl(229deg 22% 10%) 60%, transparent),+ color-mix(in oklch, hsl(0deg 0% 100%) 40%, transparent));--color-border-input-focus: light-dark(color-mix(in oklch, hsl(229deg 22% 10%) 80%, transparent),diff --git a/web/styles/inputs.css b/web/styles/inputs.cssindex 594e001df44..ac975f4ca24 100644--- a/web/styles/inputs.css+++ b/web/styles/inputs.css@@ -1,5 +1,5 @@.input-active-styles {- color: var(--color-text-input-focus);+ color: var(--color-text-input);background-color: var(--color-background-input-focus);border-color: var(--color-border-input-focus);}@@ -96,7 +96,10 @@.input-icon {grid-area: input-icon;- color: var(--color-text-input);+ /* Matching the color of input icon on the left to+ that of a neutral icon button gives us a consistent+ look when paired with the input button on the right. */+ color: var(--color-text-neutral-icon-button);/* We need to set the z-index, since the input iconcomes before the input element in the DOM, but wewant to display it over the input element in the UI. */