Ionic - How prevent dynamic fontsize on specific component?

Discussão em 'Angular' iniciado por Jonathan Sigg, Outubro 25, 2024.

  1. I use dynamic fontsize from ionic. I set the dynamic fontsize on the <html> tag with the property

    html {
    --ion-dynamic-font: var(--ion-default-dynamic-font);
    }


    But then i have the Problem, that my <ion-toolbar> in <ion-header> also scale the font, and i want to prevent this.

    I tried to set this to <ion-toolbar>

    ion-toolbar {
    --ion-dynamic-font: unset;
    }


    I tried also initial. But did not work. Is this even possible?

    Kind Regards.

    Continue reading...

Compartilhe esta Página