I'm having trouble setting the text color of the text used for a
toggle button.

My togglebutton is just;

ToggleButton autoFill = new ToggleButton("(auto.)","(auto)");
 autoFill.setStylePrimaryName("image-ToggleButton");

I can set the background color, and various other text styles using
css like;

.imageToggleButton
{
    background-color            :    #ffa;
    color                       :    #555;
}

.image-ToggleButton-up-hovering
{
    color                       :    #009;
    background-color            :    #ffd;
}

.image-ToggleButton-down, .demo-ToggleButton-down-hovering
{
color                       :    #CCC;
    background-color            :    #ff0;
}


The background color changes as you would expect, but the text stays
black.
Even specificly adding/removing a style ver a click-listener dosnt
help.

Looking at firebug, it seems the styles are being applied, but the
text is being overridden to the default style.

div, td {
color:#000000;
}

Presumably because the text has "html-face" class applied.

So has anyone got any ideas how I'm supposed to change the text color
of a ToggleButton?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to