I need to change text color of my button. I defined a css class like;
.mbutton{
background:transparent;
color:red;
border:none;
}
and button definition is here;
Ext.create('Ext.Button', {
renderTo: Ext.getBody(),
text: 'Red text',
cls:'mbutton'
});
A
button
is generated withspan
elements inside. Thecolor
need to be changed inspan
instead inbutton
. Do this way: