Syam3
(Syam Pillai)
1
What is the correct way of doing this? I tried the following and didn’t work.
<dom-module id="so-grid" theme-for="vaadin-grid">
<template>
<style>
[part="row"]
[selected]
{
background-color: ...;
}
</style>
</template>
</dom-module>
Tatu2
(Tatu Lund)
2
I think you need to use [part~="row"]
here, so
<dom-module id="so-grid" theme-for="vaadin-grid">
<template>
<style>
[part~="row"]
[selected]
{
background-color: ...;
}
</style>
</template>
</dom-module>
Syam3
(Syam Pillai)
3
No, that too didn’t work.
Syam3
(Syam Pillai)
4
Finally, I was able to get it right:
<dom-module id="so-grid" theme-for="vaadin-grid">
<template>
<style>
:host(:not([reordering]
)) [part~="row"]
[selected]
[part~="body-cell"]
:not([part~="details-cell"]
) {
background: ...;
}
</style>
</template>
</dom-module>