Material-table: BUG: row font-family

Created on 22 Jun 2020  ·  15Comments  ·  Source: mbrn/material-table

the new version does not recognize the font family roboto.

bug

Most helpful comment

Well writing "waiting" isn't any valuable input. But you're in luck! This project is open source so you have the power to contribute a proposed solution yourself. So if any of you has a proposal feel free to create a PR addressing this issue.

All 15 comments

Yes, I also have the same issue
image

Can you share your code? I do not have that issue.

Same code. I copied from your official docs. no difference https://material-table.com/#/docs/features/actions

Something must be different or you would see exactly that. So you need to share your setup and try to reproduce that.

I'm experiencing the same issue also and it wasn't like that last time I checked.

As far as I can see the difference is that each td element is receiving additional font styling options that wasn't there before:
image

At least in my case these font styles are overriding my own font styles which results in the table looking the same as the picture attached by @mfmsajidh

This is the PR that made this change: https://github.com/mbrn/material-table/pull/1997

is there a way to solve this issue while keeping the changes intact?

Yes, I agree with @idanamit . I checked, the font styles are being overridden by default
image
image

Should I override and style the fontFamily ?????? This wasn't an issue before.

@Domino987 Any updates on this Bug Issue ????

image
I am facing same problem, on version 1.64.0

The official docs have the same problem. should be an easy enough fix, the change is even in the changelog for v1.62.0 (second line from the bottom)
image
image

any updates?

Waiting

I found a workaround for this. You can get the Roboto font on your rows by adding this property to your MaterialTable:
options={{ rowStyle: { fontFamily: "Roboto" } }}

Well writing "waiting" isn't any valuable input. But you're in luck! This project is open source so you have the power to contribute a proposed solution yourself. So if any of you has a proposal feel free to create a PR addressing this issue.

Great, @mzakocs! I'm using version 1.61.0, which does not have this “bug”.

Bug in 1.69.1 still present

Was this page helpful?
0 / 5 - 0 ratings