In SmartGwt 2.2, I created a TextItem and called setTextBoxStyle("myTextItem").
When the TextItem gets focus, I want to change the background color. Here's the CSS I use:
Here's my CSS for the TextItem:
.myTextItem,
.myTextItemFocused,
.myTextItemDisabled,
.myTextItemError,
.myTextItemHint,
.myTextItemDisabled {
padding:2px;
border:1px solid #6AA0BB;
background:rgb(230,241,247) url(./images/controls/text_input.gif) repeat-x scroll;
color:#333333;
}
.myTextItemHint {
font-size: 1em;
color: Gray;
}
.myTextItemFocused {
background-color: Yellow;
}
The hint does appear gray but the focused background is not changing to yellow. Anyone see a problem with the CSS? Is there a known bug about this? Is there a workaround?
When the TextItem gets focus, I want to change the background color. Here's the CSS I use:
Here's my CSS for the TextItem:
.myTextItem,
.myTextItemFocused,
.myTextItemDisabled,
.myTextItemError,
.myTextItemHint,
.myTextItemDisabled {
padding:2px;
border:1px solid #6AA0BB;
background:rgb(230,241,247) url(./images/controls/text_input.gif) repeat-x scroll;
color:#333333;
}
.myTextItemHint {
font-size: 1em;
color: Gray;
}
.myTextItemFocused {
background-color: Yellow;
}
The hint does appear gray but the focused background is not changing to yellow. Anyone see a problem with the CSS? Is there a known bug about this? Is there a workaround?
Comment