Results 1 to 2 of 2

Thread: Having difficulty setting active icon colour in tabpanel v2.2

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    454
    Answers
    19
    Vote Rating
    21
      0  

    Default Having difficulty setting active icon colour in tabpanel v2.2

    Hi,

    I've been getting my head around the new changes required for theming in touch 2.2, however I'm having difficulty changing the colour of an active item in a tabpanel....it seems with the new picto font it is impossible to change the active colour! I've tried many variations. I can change the picto font color of non active items in a tab using this CSS:

    Code:
    .x-tabbar.x-docked-bottom .x-tab .x-button-icon.x-shown {
    color: #000;
    }
    I can't seem to change the active icon color, I've tried lots of different combinations, including:

    Code:
    .x-tabbar-light .x-tab-active {
      color: black;
      background-color: black;
    }
    
    .x-tabbar-dark .x-tab-active {
      color: black;
      background-color: black;
    }
    
    .x-tabbar-light.x-docked-bottom .x-tab-active {
      color: black;
      background-color: black;
    }

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,020
    Answers
    3976
    Vote Rating
    1363
      0  

    Default

    I did something like this:

    Code:
    .x-tabbar-dark .x-tab-active .x-button-icon:before {
        color : #f00;
    }
    to change the color of the icon for

    Code:
    Ext.Viewport.add({
        xtype : 'tabpanel',
        items : [
            {
                title   : 'Foo',
                iconCls : 'home'
            }
        ]
    });
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •