Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-15409

CSS overrides attributes in FormItem tags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • mx: Form View
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      Run this file:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

      <mx:Style>
      Label

      { color: red; }

      </mx:Style>

      <mx:Form x="10" y="10" width="304" height="169" styleName="profileForm">
      <mx:FormItem label="First name:" borderColor="#2772A7" color="blue">
      <mx:TextInput/>
      </mx:FormItem>
      <mx:FormItem label="Last name:">
      <mx:TextInput/>
      </mx:FormItem>
      </mx:Form>

      <mx:Label text="Label with overriden color attribute" color="blue"/>
      <mx:Label text="Label"/>

      </mx:Application>

      Actual Results:
      Note that the FormItem label use the color property. When the color attribute is applied directly to an mxml tag it should override any css.

      It works correctly for the labels outside of the Form, but not for FormItem labels

      Expected Results:

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: