fix: Adjust dashboard and header menu to use new background colors

fix(UnifiedSearch): Adjust to new background color

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/42977/head
Ferdinand Thiessen 2024-01-19 22:53:49 +07:00
parent de938bb401
commit 9d2c3c1164
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
6 changed files with 21 additions and 14 deletions

@ -471,8 +471,8 @@ export default {
background-attachment: fixed; background-attachment: fixed;
> h2 { > h2 {
// this is shown directly on the background which has `color-primary`, so we need `color-primary-text` // this is shown directly on the background image / color
color: var(--color-primary-text); color: var(--color-background-plain-text);
text-align: center; text-align: center;
font-size: 32px; font-size: 32px;
line-height: 130%; line-height: 130%;

@ -22,7 +22,7 @@
width: 12px; width: 12px;
height: 2px; height: 2px;
border-radius: 3px; border-radius: 3px;
background-color: var(--color-primary-text); background-color: var(--color-background-plain-text);
left: 50%; left: 50%;
opacity: 1; opacity: 1;
} }

@ -144,7 +144,7 @@ $header-icon-size: 20px;
width: 12px; width: 12px;
height: 5px; height: 5px;
border-radius: 3px; border-radius: 3px;
background-color: var(--color-primary-text); background-color: var(--color-background-plain-text);
left: 50%; left: 50%;
bottom: 6px; bottom: 6px;
display: block; display: block;
@ -161,8 +161,8 @@ $header-icon-size: 20px;
width: calc(100% - 4px); width: calc(100% - 4px);
height: calc(100% - 4px); height: calc(100% - 4px);
margin: 2px; margin: 2px;
// this is shown directly on the background which has `color-primary`, so we need `color-primary-text` // this is shown directly on the background
color: var(--color-primary-text); color: var(--color-background-plain-text);
position: relative; position: relative;
} }
@ -179,8 +179,8 @@ $header-icon-size: 20px;
opacity: 0; opacity: 0;
position: absolute; position: absolute;
font-size: 12px; font-size: 12px;
// this is shown directly on the background which has `color-primary`, so we need `color-primary-text` // this is shown directly on the background
color: var(--color-primary-text); color: var(--color-background-plain-text);
text-align: center; text-align: center;
left: 50%; left: 50%;
top: 45%; top: 45%;
@ -238,7 +238,7 @@ $header-icon-size: 20px;
/* Remove all background and align text color if not expanded */ /* Remove all background and align text color if not expanded */
&:not([aria-expanded="true"]) { &:not([aria-expanded="true"]) {
color: var(--color-primary-element-text); color: var(--color-background-plain-text);
&:hover { &:hover {
opacity: 1; opacity: 1;
@ -278,7 +278,7 @@ $header-icon-size: 20px;
content: ""; content: "";
width: 8px; width: 8px;
height: 8px; height: 8px;
background-color: var(--color-primary-element-text); background-color: var(--color-background-plain-text);
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
display: block; display: block;

@ -9,7 +9,7 @@
:aria-label="t('core', 'Search contacts')" :aria-label="t('core', 'Search contacts')"
@open="handleOpen"> @open="handleOpen">
<template #trigger> <template #trigger>
<Contacts :size="20" /> <Contacts class="contactsmenu__trigger-icon" :size="20" />
</template> </template>
<div class="contactsmenu__menu"> <div class="contactsmenu__menu">
<div class="contactsmenu__menu__input-wrapper"> <div class="contactsmenu__menu__input-wrapper">
@ -171,6 +171,10 @@ export default {
.contactsmenu { .contactsmenu {
overflow-y: hidden; overflow-y: hidden;
&__trigger-icon {
color: var(--color-background-plain-text) !important;
}
&__menu { &__menu {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

@ -12,8 +12,7 @@
@close="onClose"> @close="onClose">
<!-- Header icon --> <!-- Header icon -->
<template #trigger> <template #trigger>
<Magnify class="unified-search__trigger" <Magnify class="unified-search__trigger-icon" :size="20" />
:size="22/* fit better next to other 20px icons */" />
</template> </template>
<!-- Search form & filters wrapper --> <!-- Search form & filters wrapper -->
@ -706,6 +705,10 @@ $input-height: 34px;
$input-padding: 10px; $input-padding: 10px;
.unified-search { .unified-search {
&__trigger-icon {
color: var(--color-background-plain-text) !important;
}
&__input-wrapper { &__input-wrapper {
position: sticky; position: sticky;
// above search results // above search results

@ -71,7 +71,7 @@ export default {
&-icon { &-icon {
// ensure the icon has the correct color // ensure the icon has the correct color
color: var(--color-primary-text) !important; color: var(--color-background-plain-text) !important;
} }
} }
} }