Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable angular material typography styles?

how to disable angular material typography styles after installed angular materials? It is changing my visual style and it is not easy to overwrite. I dont need it, just need to get rid of it.

like image 403
user2617470 Avatar asked Dec 06 '22 08:12

user2617470


1 Answers

Inside your index.html file, the body tag should have class="mat-typography", just remove this class and your styles shouldn't be overwritten anymore. You should also check if your Angular Material theme doesn't contain any custom typography like it's shown in Typography guide (https://material.angular.io/guide/typography)

like image 92
Ashiv3r Avatar answered Jan 28 '23 10:01

Ashiv3r