Skip to content

Commit

Permalink
fix(ConversationIcon): force light background color for conversation …
Browse files Browse the repository at this point in the history
…type when using light theme

Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Mar 11, 2024
1 parent 24b1dc8 commit 99c0cfe
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/TopBar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-->

<template>
<div class="top-bar" :data-theme-dark="isInCall">
<div class="top-bar" :style="topBarStyle" :data-theme-dark="isInCall">
<ConversationIcon :key="conversation.token"
class="conversation-icon"
:offline="isPeerInactive"
Expand Down Expand Up @@ -306,6 +306,12 @@ export default {
hasReactionSupport() {
return this.isInCall && this.supportedReactions?.length > 0
},

topBarStyle() {
return {
'--original-color-main-background': window.getComputedStyle(document.body).getPropertyValue('--color-main-background')
}
},
},

watch: {
Expand Down Expand Up @@ -465,4 +471,9 @@ export default {
}
}
}

:deep(.conversation-icon__type) {
border-color: var(--original-color-main-background) !important;
background-color: var(--original-color-main-background) !important;
}
</style>

0 comments on commit 99c0cfe

Please sign in to comment.