View Full Version : Sencha Touch button style problem

24 Feb 2012, 10:47 AM
I am trying to set the style of a toolbar button like this:

{ui: 'plain', text: 'Text', cls: 'linkButton'}
where "linkButton" is the name of my css class. However the style is overridden by sencha's default style when the page is rendered. I used Chrome's inspect element tool and found this

<div id="ext-comp-1008" class="x-button linkButton x-button-plain"><span class="x-button-label" id="ext-gen1015">Text</span></div>

My css class is overridden by the x-button-plain style. Am I missing something?

24 Feb 2012, 11:16 AM
The ui class will take priority over the cls config. You may need to use !important in your CSS.