Textfield CSS issue

Hi,

I’m trying to style a TextField widget, but get bevaviour I don’t understand!

The textfield is defined as follows, together with a user defined stylename:

final TextField statusbar = new TextField(); statusbar.setStyleName("statusbar"); The accompanying CSS fragment reads:

.v-textfield-statusbar { color: #ff0000; font-weight: bold; border: thin dashed; } Unfortunately the color of the text is not rendered in red, while the dashed border is present and the font weight is indeed bold!

Why is that?

Regards,
Gerard

Sorry, for bothering you all!

Added
input
to the selector like:

input.v-textfield-statusbar and now the text is indeed rendered in red!

Regards,
Gerard