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.

search: Reset default iOS button styles.

Karl Stolleyf55feae0ea7d
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 3847c8d623d..1865989df3d 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -556,6 +556,7 @@
--color-search-shadow-wide: hsl(0deg 0% 0% / 25%);
--color-search-shadow-tight: hsl(0deg 0% 0% / 10%);
--color-search-dropdown-top-border: hsla(0deg 0% 0% / 10%);
+ --color-search-icons: hsl(0deg 0% 0%);
--color-background-image-loader: hsl(0deg 0% 0% / 10%);
--color-icon-purple: hsl(240deg 35% 60%);
--color-background-popover-menu: hsl(0deg 0% 100%);
@@ -958,6 +959,7 @@
--color-background-search-option-hover: hsl(0deg 0% 30%);
--color-search-box-hover-shadow: hsl(0deg 0% 0% / 30%);
--color-search-dropdown-top-border: hsla(0deg 0% 0% / 35%);
+ --color-search-icons: hsl(0deg 0% 78%);
--color-background-image-loader: hsl(0deg 0% 100% / 10%);
--color-background-popover-menu: hsl(0deg 0% 17%);
--color-border-popover-menu-separator: hsl(0deg 0% 0% / 40%);
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 4fbcba7562b..bb99e7f2dc0 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -458,12 +458,6 @@
.search_icon {
opacity: 0.75;
}
-
- /* Colors are inherited in light theme */
- .navbar-search .search_icon,
- .navbar-search .search_close_button {
- color: hsl(0deg 0% 78%);
- }
}
.new-style .button.no-style {
diff --git a/web/styles/search.css b/web/styles/search.css
index 458bc7b99a8..21279a93f30 100644
--- a/web/styles/search.css
+++ b/web/styles/search.css
@@ -17,7 +17,7 @@
font-size: 17px;
border: none;
background-color: transparent;
- color: hsl(0deg 0% 0%);
+ color: var(--color-search-icons);
opacity: 0.5;
cursor: default;
@@ -40,6 +40,9 @@
opacity: 0.5;
line-height: 0;
border-radius: 4px;
+ /* Reset iOS button defaults. */
+ color: var(--color-search-icons);
+ padding: 0;
&:not(:focus-visible) {
outline: none;