Reputation: 857
I have trouble with some styling vaadin elements. I need to style default vaadin-combo-box element.
My importing:
<link rel="import" href="../../../bower_components/vaadin-valo-theme/vaadin-combo-box.html">
And it looks like:
My shared style html:
<dom-module theme-for="vaadin-combo-box">
<template>
<style include="vaadin-combo-box-default-theme">
[part="input-field"] {
padding: 0;
}
</style>
</template>
</dom-module>
What did i do wrong ? And any advice ?
Upvotes: 0
Views: 1695
Reputation: 213
I guess you read through https://github.com/vaadin/vaadin-themable-mixin/wiki/1.-Style-Scopes already.
If you check https://vaadin.com/components/vaadin-combo-box/html-api/ you will noticed that the part input-field
you have defined does not exist for the combobox. The documentation lists:
The <vaadin-text-field>
used by the combo-box has an input-field
part. But if you want to style that one, you will need to add a custom styling for the text-field itself.
Upvotes: 3