3 Replies Latest reply on Nov 30, 2011 10:25 AM by Flex harUI

    Setting error colour on an mx:DateField with a Spark skin

    EricJ32 Level 1

      I have skinned a Halo DateField component so it matches the look-and-feel of my Spark TextInputs by doing the following:

       

      CSS:

       

        s|TextInput

                {

        skin-class: ClassReference("skins.TextInputSkin");

                }

       

        mx|DateField

                {

        text-input-style-name: "dateField";

                }

       

        mx|TextInput.dateField

                {

        borderSkin: ClassReference("skins.TextInputSkin");

                }

       

        s|TextInput,

        mx|TextInput.dateField

        {

        error-color: #FFFF00;

        }

       

       

      However, the error color isn't picked up on validation for the DateField (it works perfectly for the TextInput). Is there any way to achieve this?

       

      Thanks