Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic framework cannot set button icon size

I would like to set custom icon (ionicons) size for this code:

<button class="button button-icon icon ion-stop customIconSound"></button>

For class customIconSound i tried following:

button.customIconSound,button.button-icon {
    font-size: 52px !important;
    color: #fff;
    line-height: 55px!important;
}

But without luck. If i tried icon class without the button button-icon class i fount that it is working but without button class icons has not pressed state (because is it not a button).

How can i solve it please?

Thanks for any advice.

like image 981
redrom Avatar asked Jan 26 '15 20:01

redrom


2 Answers

Lucas was close but the correct syntax is this one

button.customIconSound:before {
    font-size: 22px !important;
}
like image 146
Luis Cabrera Avatar answered Oct 12 '22 23:10

Luis Cabrera


If you didn`t solve your problem yet or for people dealing with it in future.

You have to change css style for i pseudo element :before

button.customIconSound i:before {
    font-size: 52px !important;
}
like image 33
lucas Avatar answered Oct 12 '22 23:10

lucas