Table numbers font is not as expected (system SF)
sirleech opened this issue · 6 comments
Bug Report
- [x ] I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
- [ x] I’ve read and agree to the Code of Conduct.
- [x ] I’ve searched for any related issues and avoided creating a duplicate issue.
What happened
Table numbers font seems to be Verdana, not the system font as expected.
What I expected to happen
On a mac, I expect this to be the SF system font. It looks a bit broken being in Verdana.
Reproducing
Latest, as on the documentation page
Attachments
@sirleech yeah we are still trying to figure this out. If we used the default numeric (monospace) family it would look like this, which I thought looked a bit odd.
I was looking for a web safe font that has monospacing for numbers, but not other characters such as commas, decimals etc. I came across Verdana and it looked okay. But I think it makes sense to revert back to our monospace font family.
What are your thoughts?
@sirleech I'll leave it open for now, in case anybody has an elegant solution to this problem.
This seems to work ok:
font-variant-numeric: tabular-nums;
@sirleech I think you are onto something, let me give this a whirl 👍
okay cool so font-variant-numeric
is not supported on older browsers...but I can use font-variant
and apply this property to the .au-table__cell--numeric
class. Thanks Chris!