Similar Issue:
Warning: css type selectors are not supported in components ‘sparks.component.TextInput’
I have recently developed a new MXML component that includes several labels and the following custom styling:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace local "*";
s|Label {
font-size:12;
font-weight:bold;
color:white;
}
#timeLeftHGroup {
left:30;
top:12;
}
Upon adding the style to my component, I encountered a warning specifically at the s|Label
line:
CSS type selectors are not supported in components: 'spark.components.Label'
Despite the warning message, the CSS code does seem to work as intended – changing text color, weight, and font size. So why am I receiving this warning?