Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Add backgroud color to all inputs

Agata Vackova
6 years ago Sep 29, 2015 2:24pm
Joacim Päivärinne
6 years ago Apr 06, 2016 11:38am
Agata Vackova
6 years ago Apr 07, 2016 6:58am
Johannes Laidler
6 years ago Apr 07, 2016 7:52am
Joacim Päivärinne
6 years ago Apr 13, 2016 9:24am
Agata Vackova
6 years ago Apr 13, 2016 10:12am
Joacim Päivärinne
6 years ago Apr 13, 2016 10:15am

You don't need to do that though.

.changed-field,
.changed-field [class*="input"],
.changed-field [class*="textfield"] {
  background: $v-changed-field-background;
}

If that's not strong enough you can add .v-widget, i.e. .v-widget.changed-field etc.

Agata Vackova
6 years ago Apr 13, 2016 10:47am
Joacim Päivärinne
6 years ago Apr 13, 2016 10:55am
Agata Vackova
5 years ago Apr 14, 2016 2:33pm