Results 1 to 6 of 6

Thread: Cmd v6.0.1.76 Fashion - CSS Nested rules and parent reference not working as expected

    Success! Looks like we've fixed this one. According to our records the fix was applied for SDKTOOLS-1302 in 6.0.3.
  1. #1
    Sencha Premium Member
    Join Date
    May 2015
    Posts
    14

    Default Cmd v6.0.1.76 Fashion - CSS Nested rules and parent reference not working as expected

    Hi,

    We are in the process of updating Sencha Cmd and SDK to the latest version 6.0.1 but are having some trouble with the Fashion compiler.

    It looks like nested css rules using the parent reference selector are not compiled correctly.

    Please consider this test code:
    Code:
    .test-message, .test-message2 {
        border: 1px solid black;
        padding: 10px;
        color: black;
        &.success {
            color: green;
        }
        &.error {
            color: red;
        }
    }
    .test-message3 {
        @extend .test-message;
        color: orange;
    }
    If we add this to Main.scss of a new v6.0.1 Ext.js application (Cmd v6.0.1.76, SDK v6.0.1.250), the compiled CSS will show:
    Code:
    /* http://localhost:1841/test1/classic/sass/src/view/main/Main.scss:92 */
    .test-message,
    .test-message2,
    .test-message3 {
        border: 1px solid black;
        padding: 10px;
        color: black;
    }
    /* http://localhost:1841/test1/classic/sass/src/view/main/Main.scss:98 */
    .test-message.success {
        color: green;
    }
    /* http://localhost:1841/test1/classic/sass/src/view/main/Main.scss:101 */
    .test-message.error {
        color: red;
    }
    /* http://localhost:1841/test1/classic/sass/src/view/main/Main.scss:106 */
    .test-message3 {
        color: orange;
    }
    As you can see, the nested rules &.success and &.error are not expanded for the test-message2 and the test-message3 classes. This is unexpected and breaks our application's theme.

    The same code compiled using the previous Sencha Cmd v6.0.0.202 or regular SASS (v3.4.18) will give the expected result:
    Code:
    .test-message,
     .test-message3,
     .test-message2 {
        border: 1px solid black;
        padding: 10px;
        color: black;
    }
    .test-message.success, .success.test-message3, .test-message2.success {
        color: green;
    }
    .test-message.error, .error.test-message3, .test-message2.error {
        color: red;
    }
    .test-message3 {
       color: orange;
    }
    Is this a bug in the Fashion compiler?

    Regards,
    IcoFisher

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962

    Default

    Thanks for the report, I've opened a bug in our tracking system.

    Regards,
    Bryan

  3. #3
    Sencha Premium Member
    Join Date
    May 2015
    Posts
    14

    Default

    Thank you. A ticket was already opened, the ticket id is SDKTOOLS-1302.

    Sencha Cmd 6.0.2.14 gives the same results.

    Regards,
    IcoFisher.

  4. #4
    Sencha Premium Member rkleinkromhof's Avatar
    Join Date
    Apr 2013
    Location
    Enschede, The Netherlands
    Posts
    53

    Default

    Any progress on this? It's preventing us from upgrading from 6.0.0 to 6.0.1.

  5. #5
    Sencha Premium Member rkleinkromhof's Avatar
    Join Date
    Apr 2013
    Location
    Enschede, The Netherlands
    Posts
    53

    Default

    Still broken in 6.0.3.40

    This is preventing us from upgrading beyond Ext JS 6.0.0.640 and Cmd 6.0.0.202.

  6. #6
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108

    Default

    Fixed in 6.0.3.46

Similar Threads

  1. Reference to parent window
    By Golden.Vulture in forum Ext: Q&A
    Replies: 3
    Last Post: 17 Dec 2018, 6:06 AM
  2. Getting reference to parent view
    By shashj in forum Sencha Touch 2.x: Discussion
    Replies: 1
    Last Post: 8 Feb 2013, 8:05 AM
  3. How to reference parent object?
    By dlw in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 27 Nov 2008, 2:47 AM
  4. get a reference to parent panel
    By kalinga in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 25 May 2008, 11:00 PM
  5. How to get reference to parent container?
    By pic_Nick in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Nov 2007, 1:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •