How do you remove defaul GWT style from CaptionPanel widget ?
In my .ui.xml I tried pretty much everything. I tried setting stylePrimaryName and styleName to my classname. I also tried defining .gwt-CaptionPanel with no effect.
My .xml looks something like this:
<ui:style src="../common.css">
.test {
color: red;
}
.gwt-CaptionPanel {
}
</ui:style>
<g:CaptionPanel captionText="Test" stylePrimaryName="{style.test}">
</g:CaptionPanel>
CaptionPaneldoes not have a default style defined, so.gwt-CaptionPanelthat you think exists, actually is not used.CaptionPanelis implemented as a<fieldset>tag so there should be no problem with the color text, but since you are not putting anything inside the caption panel you will not actually see anything.