Hi!
We have a view containing a vaadin-grid. In this grid we add a custom component as details. This custom component only contains a vaadin-button with a theme-tag:
<link rel="import" href="./theme/sc/sc-button.html">
<dom-module id="grid-details">
<template>
<vaadin-button id="closeButton" theme="close-button-theme">
Close Panel
</vaadin-button>
</template>
<script>
...
</script>
</dom-module>
the theme file looks like this:
<dom-module id="product-grid-details-theme" theme-for="vaadin-button">
<template>
<style>
:host([theme~="close-button-theme"]
) {
height: 30px;
width: 99px;
padding: 0;
min-width: 0;
min-height: 0;
background: #E4E4E4;
color: black;
margin-right: 16px;
}
</style>
</template>
</dom-module>
When i open the details-column the styles are not applied. I moved the button out of the details direct in the main-view and the styles are applied. So it seems like that it’s only not workin in the grid-details. Is there a solution for this problem or have i done something wrong?
Thank you in advance