Hi, on flow I have the following (custom) grid style at the shared-styles.html:
<dom-module id="my-grid-theme" theme-for="vaadin-grid">
<template>
<style>
:host {
--_lumo-grid-selected-row-color: var(--lumo-primary-color-50pct);
}
/* Headers and footers */
[part~="header-cell"]
::slotted(vaadin-grid-cell-content),
[part~="footer-cell"]
::slotted(vaadin-grid-cell-content),
[part~="reorder-ghost"]
{
font-size: var(--lumo-font-size-s);
font-weight: 500;
text-align: center;
}
[part~="header-cell"]
{
background-color: hsl(214,90%,90%);
}
[part~="row"]
:hover [part~="body-cell"]
{
color: red;
background-color : var(--lumo-primary-color-10pct);
}
</style>
</template>
</dom-module>
So generally I have the header with different background color (hsl(214,90%,90%); When I switch to “Dark” theme I get the same Background Color (which is really unreadable in Dark mode).
How can I have different background colors for the [part~=“header-cell”]
when on light and when on dark mode?
Thanks!
Nick