Skip to content
Advertisement

How to change the color of vaadin-select-text-field in the vaadin-select within page only?

How to change the color of vaadin-select-text-field from the vaadin-select within page only? For the vaadin-select source, it is not changed. I want to custom on the vaadin-select in the page. Anyone who can style the vaadin-select?

I’ve tried to change the style of vaadin-select but it is none. This is because of the shadow-root. Hope the junior or senior or professional programmers who can answer and solve it.

JavaScript

It is none change the color.

Advertisement

Answer

In one week, I’ve challenge with the background of vaadin-text-field. At end, I could git it.

In the vaadin-text-styles.js, this pages actually created for a new copy js. The styles can changed to be transparent background.

JavaScript

And the vaadin-text-field-theme.js is also created for the copy vaadin-text-field. It is not modified but it should change ‘vaadin-text-field-1’ in static get is().

JavaScript

At the end, it can work with created the vaadin-text-field-1.

JavaScript

After that, you can import ‘./vaadin-text-field-1.js’ in any pages.

Thank you for sharing our experience with kind.

enter image description here

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement