Can I apply style (CSS) to a specific widget ( PopupPanel ) and not to an element? After all, PopupPanel unfolds in a normal div.

PS Not for an instance, but for all instances of this widget.

    1 answer 1

    If in the css project file override classes


    .gwt-PopupPanel .popupContent

    then these changes will affect all PopupPanel, except those on which the stylePrimaryName was applied (a property in UiBinder or a method somewhere in Java code) with a different style.

    • This way it works. But you need to write not only the class, but also the tag div.gwt-PopupPanel {...} Otherwise, the priority does not pass. - Nicolas Chabanovsky