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.

dropdown_widget: Use CSS variable for disable color.

Tim Abbott2807d7fbb804
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 3d31dfb65dd..6bc5b984f52 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -1157,7 +1157,9 @@ input.settings_text_input {
&:disabled {
cursor: not-allowed;
- background-color: hsl(0deg 0% 93%);
+ background-color: var(
+ --color-background-disabled-dropdown-widget-button
+ );
opacity: 0.7;
}
}
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 4bbc8b56bfa..3495306d240 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -742,6 +742,7 @@
/* Widgets colors */
--color-border-dropdown-widget-button: hsl(0deg 0% 80%);
--color-background-dropdown-widget-button: hsl(0deg 0% 100%);
+ --color-background-disabled-dropdown-widget-button: hsl(0deg 0% 93%);
/* KBD colors */
--color-kbd-background: hsl(0deg 0% 98%);
@@ -1249,6 +1250,7 @@
/* Widgets colors */
--color-border-dropdown-widget-button: hsl(0deg 0% 0% / 60%);
--color-background-dropdown-widget-button: hsl(0deg 0% 0% / 20%);
+ --color-background-disabled-dropdown-widget-button: hsl(0deg 0% 0% / 20%);
/* KBD colors */
--color-kbd-background: hsl(211deg 29% 14%);