Skip to content

Commit bb811ee

Browse files
committed
Change text color in search box in darktheme, ref #15598
Signed-off-by: Greta Doci <gretadoci@gmail.com>
1 parent 74ad4cc commit bb811ee

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

apps/accessibility/css/themedark.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ $color-border-dark: lighten($color-main-background, 14%);
4242

4343
// since svg icons are inverted, revert to white for the header
4444
.header-right > * {
45-
>[class^='icon-'],
46-
>[class*=' icon-'] {
45+
>[class^='icon-'] {
4746
filter: invert(100%);
4847
}
4948
}

core/css/header.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ nav[role='navigation'] {
631631
width: 155px;
632632
cursor: text;
633633
background-color: transparent !important;
634-
border: 1px solid var(--color-border) !important;
634+
border: 1px solid var(--color-primary-text) !important;
635635
}
636636
&:hover, &:focus, &:active {
637637
opacity: 1;
@@ -656,6 +656,9 @@ nav[role='navigation'] {
656656
-webkit-appearance: none;
657657
}
658658
}
659+
.icon-search-force-white {
660+
@include icon-color('search', 'actions', '#fffffe', 1, true);
661+
}
659662
}
660663

661664
/* Empty content messages in the header e.g. notifications, contacts menu, … */

core/templates/layout.user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<?php p($l->t('Search'));?>
106106
</label>
107107
<input id="searchbox" type="search" name="query"
108-
value="" required class="hidden icon-search-white"
108+
value="" required class="hidden icon-search-white icon-search-force-white"
109109
autocomplete="off">
110110
<button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search'));?></span></button>
111111
</form>

0 commit comments

Comments
 (0)