Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49256

Help with ionic icon Styling

$
0
0

Hi, i have a split pane menu and when a menu item is selected this css is applied to it using routerLinkActive=“active-link”:

.active-link{
    --ion-text-color: var(--ion-color-primary);
    font-weight: bold;
 }

and it works, turning the text blue.

Now the problem is that i want to use icons instead of text, does anyone know how to do this, i tried some silly things like --ion-icon-color or just some normal css styling but nothing worked. My ion-icon is inside a ion-item and the item is assigned to the css class.

Using ionic 5

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49256

Trending Articles