Open anezthes opened 5 years ago
Same thing for the Material theme. The margin: -6px 0 0;
feels quite random. I thought it looked better without it, but I wanted to keep it consistent with how you're currently theming inputs.
<dom-module id="vaadin-grid-pro-date-picker" theme-for="vaadin-date-picker">
<template>
<style>
:host([theme~="vaadin-grid-pro-date-picker"]) {
margin: -6px 0 0;
position: relative;
top: 6px;
width: 100%;
}
</style>
</template>
</dom-module>
<dom-module id="vaadin-grid-pro-text-field" theme-for="vaadin-text-field">
<template>
<style>
:host([theme~="vaadin-grid-pro-date-picker"]) {
font-size: inherit;
margin: 0;
padding: 0;
}
</style>
</template>
</dom-module>
I wanted to use
vaadin-date-picker
withvaadin-grid-pro
, but of course, it didn't look correct at first.So I decided to take a look at how you guys implemented
vaadin-grid-pro-edit-text-field
.Here's what I ended up with:
Feel free to include this somehow so we don't have to write it again. :slightly_smiling_face: