0

I want to select all buttons with a certain skinClass, I've been trying this but it doesn't work:

s|Button[skinClass="local.MyButtonSkin"]{
    fontWeight: normal;
}

My problem is that I have many buttons with different skins, all of them need to have bold text except one.

How can I select a component by its skinClass?

zero323
  • 322,348
  • 103
  • 959
  • 935
Drahcir
  • 11,772
  • 24
  • 86
  • 128

1 Answers1

1

I don't think it's possible and either way I would do it the other way around: I'd rather select using a styleName and assign the skinClass through CSS:

<s:Button styleName="myButton"/>

CSS

s|Button.myButton{
    fontWeight: normal;
    skinClass: ClassReference("local.MyButtonSkin");
}
RIAstar
  • 11,912
  • 20
  • 37
  • Thanks, this way is much more organized, I've started making some changes and it's looking better overall now – Drahcir Apr 26 '13 at 13:32