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.

typeahead: Change color for the right hand side option label.

Shubham Padia5ffb75387ad4
diff --git a/web/src/bootstrap_typeahead.ts b/web/src/bootstrap_typeahead.ts
index 8bca832f3ea..8fce7d9c2e2 100644
--- a/web/src/bootstrap_typeahead.ts
+++ b/web/src/bootstrap_typeahead.ts
@@ -562,8 +562,8 @@ export class Typeahead<ItemType extends string | object> {
if (option_label_html) {
$item_html
- .append($(option_label_html))
- .addClass("typeahead-option-label-container");
+ .addClass("typeahead-option-label-container")
+ .append($(option_label_html).addClass("typeahead-option-label"));
}
return $i;
});
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index d9ffeb3ab54..3847c8d623d 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -920,6 +920,7 @@
--color-active-dropdown-item: hsl(0deg 0% 0%);
--background-color-active-dropdown-item: hsl(220deg 12% 4.9% / 5%);
--background-color-active-typeahead-item: hsl(221.14deg 89.74% 92.35%);
+ --color-typeahead-option-label: var(--grey-500);
}
%dark-theme {
@@ -1311,6 +1312,7 @@
--background-color-active-typeahead-item: hsl(
226.35deg 82.53% 55.1% / 38.82%
);
+ --color-typeahead-option-label: var(--grey-400);
}
@media screen {
diff --git a/web/styles/typeahead.css b/web/styles/typeahead.css
index a023b347887..72d50cb5fcc 100644
--- a/web/styles/typeahead.css
+++ b/web/styles/typeahead.css
@@ -157,6 +157,10 @@
> strong {
margin-right: 14px;
}
+
+ .typeahead-option-label {
+ color: var(--color-typeahead-option-label);
+ }
}
.typeahead-image {