Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Material: Can't find Typography classes

I can't find the css classes demoed in the example website here: https://material.angularjs.org/#/CSS/typography

I have bower installed angular-material, and I have version 0.8.3

I found the classes I am looking for here in their github: https://github.com/angular/material/blob/master/src/core/style/typography.scss

But I can't find a compiled version for some reason

like image 699
Tsung-Ting Chen Avatar asked Mar 24 '26 17:03

Tsung-Ting Chen


1 Answers

It looks like typography CSS classes were added since the 0.8.3 tag of the bower-material repository (in the 6af154 commit). They showed up in the v0.8.3-master-6af1546 tag but bower is still probably pulling the initial v0.8.3 release.

A temporary workaround is to hardcode your bower angular material dependency to a tag that does include the typography styles e.g.: "angular-material": "0.8.3-master-ffd299d"

Obviously, you wouldn't want to leave it like this long term if you ever wanted to get updates. I'd expect the 0.8.4 release of Angular Material will include the typography styles at which point it should work to change your bower.json back to something like: "angular-material": "0.8.x"

like image 178
jandersen Avatar answered Mar 26 '26 10:03

jandersen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!