I tried your example and the text color changes. I used very different colors to make sure I was seeing what I wanted and to make sure they were web viable.
CSS: .image-ToggleButton { background-color : black; color : white; } .image-ToggleButton-up-hovering { color : red; background-color : blue; } .image-ToggleButton-down, .demo-ToggleButton-down-hovering { color : green; background-color : yellow; } On Feb 22, 8:50 am, darkflame <darkfl...@gmail.com> wrote: > 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---