Krzysztof Krawiec
Krzysztof Krawiec

Reputation: 127

Angular Material Paginator - Styling Issue

Hi i have a strange behaviour with Angular Material Table.
The table itself is 100% working (it loads and displays the data and pagination clicking works totaly fine).
The issue is with styling.
It looks this same even after copy-pasing examples from material website. It seems like something is missing in terms of styles. This is how it looks like:enter image description here
As you can see there are no icons of page toggle, and the items per page is displayed wider than table itself.

Im sure that this is not issue with matIcons as i am using them in this same table and they display fine.

Anyone knows what is going on? Thanks in advance!

Upvotes: 2

Views: 2333

Answers (2)

CodeMind
CodeMind

Reputation: 646

Are you using mat table classes withing <th> ,<td> classes? if so please use <mat-table> instead of above tags.some times bootsrap table css will overide mat-table classes

Upvotes: 0

Krzysztof Krawiec
Krzysztof Krawiec

Reputation: 127

Yeah well, thanks @BohdanC.

I forgot to add a theme, but this was not rised as a console error, but warning.

Upvotes: 2

Related Questions