Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-6420

Alloy: warnings relative to Custom TSS styles not being used should not be displayed

    Details

    • Story Points:
      5
    • Sprint:
      2014 Sprint 12 Studio

      Description

      Problem description

      Studio is displaying warning messages also for CustomTSS conditionals in Styles.

      See new feature: ALOY-871

      Steps to reproduce

      1. Create an Alloy project and use the following code:

      alloy.js

      Alloy.Globals.someProperty = true;
      

      index.xml

      <Alloy>
      	<Window>
      		<Label id="title1" class="label"/>
      	</Window>
      </Alloy>
      

      index.tss

      "Window":{
      	layout:"vertical",
      	backgroundColor:'white',
      	top:20
      }
      /* Class selector applied to labels of class=label */
      ".label": {
      	color: 'blue'
      }
      /* Component selector applied to all labels, though will be overridden */
      "Label":{
      	top:10,
      	text: "Default label text",
      	font: {
      		fontSize: '14dp'
      	}
      }
       
      /* Custom TSS overrides component and class selectors if someProperty is true */
      "Label[if=Alloy.Globals.someProperty]":{
      	text: "Custom TSS: Alloy.Globals.someProperty==true"
      }
      

      2. Check styles.tss file

      Result: Studio is displaying a warning next to CustomTSS style (see screenshot too).
      Expected results: CustomTSS styles queries should probably be ignored or handled differently.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                fcasali Federico Casali
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: