fix contrast issue

when badges with and without highlighted state have a very
different brightness (as they might do in dark mode), hardcoding
the fg color of a badge independent of it's highlighted state
to $accent-fg-color doesn't work well, so add an extra SASS
variable we can reassign to something more specific in the custom theme
This commit is contained in:
Bruno Windels 2019-10-01 16:58:14 +02:00
parent c1edd6d0b5
commit 15b7a5af31
4 changed files with 6 additions and 2 deletions

View file

@ -110,7 +110,7 @@ limitations under the License.
flex: 0 1 content;
border-radius: 0.8em;
padding: 0 0.4em;
color: $accent-fg-color;
color: $roomtile-badge-fg-color;
font-weight: 600;
font-size: 12px;
}
@ -156,6 +156,7 @@ limitations under the License.
.mx_RoomTile_highlight .mx_RoomTile_badge,
.mx_RoomTile_badge.mx_RoomTile_badgeRed {
color: $accent-fg-color;
background-color: $warning-color;
}