Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1004] Styles priority is not correctly respected when using Custom TSS queries

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2014-05-07T15:55:07.000+0000
Affected Version/sAlloy 1.4.0
Fix Version/sn/a
ComponentsStyling
Labelsqe-3.3.0
ReporterFederico Casali
AssigneeTim Poulsen
Created2014-05-06T00:35:04.000+0000
Updated2014-06-18T22:33:47.000+0000

Description

Comments

  1. Tim Poulsen 2014-05-06

    I discussed priorities with a group of the Titans prior to implementing this feature. It was universally agreed that custom TSS conditions should have the highest priority and take precedence over any other conditionals. If you look to where priorities are defined in Alloy/commands/compile/styler.js (line 19), you'll see that TSSIF conditionals are assigned the highest priority. Your example shows that this is the priority hierarchy that is being applied. I'm open to changing this if our internal decision is that priorities should be assigned differently. However, for now I'm closing this as invalid because it's working as intended.
  2. Tim Poulsen 2014-05-06

    Reopening after speaking with Federico. Component selectors shouldn't override ID selectors regardless of whether custom TSS queries are in the mix or not.
  3. Federico Casali 2014-05-06

    Further sample with Custom TSS applied to the Controller API : https://github.com/federico1525/Alloy-Samples/tree/master/ALOY-1004
  4. Tim Poulsen 2014-05-06

    PR: https://github.com/appcelerator/alloy/pull/387 Includes a test app, which is an expanded version of the one posted by Federico in the preceding comment
  5. Tim Poulsen 2014-05-07

    PR merged

JSON Source