Hi there,
I’m currently working on a form which has many mandatory fields, ComboBoxes as well. I want to mark all of these with a “mandatory” selector in the CSS, so that the mandatory fields have a different background color. That’s very simple for TextFields, but not for ComboBoxes as they are rendered from different images. I created my version of these images with different background color, but I’m having problems assigning them to the Vaadin selectors properly.
OK, so I have a ComboBox with setStyleName(“mandatory”) and my own ComboBox images with approriate names. However, the following selector doesn’t seem to work in my own styles.css:
.mandatory .v-filterselect-button {
overflow: hidden;
width: 25px;
height: 24px;
background-image: url(img/right-mandatory.png); /** sprite-ref: verticals ; sprite-margin-bottom: 1px */
cursor: default;
}
Any idea where does it go wrong?
Should I have my own version of vertical-sprites.png as well? What is this file actually? The Book of Vaadin has unfortunately very poor information on this.
Thanks,
Marton