Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Text in right-aligned table columns renders in serif font #31

Closed
matt-dray opened this issue Jun 5, 2019 · 1 comment
Closed

Text in right-aligned table columns renders in serif font #31

matt-dray opened this issue Jun 5, 2019 · 1 comment

Comments

@matt-dray
Copy link

matt-dray commented Jun 5, 2019

Problem

For me, right-aligned columns appear as serif font, but table font should be sans-serif regardless of alignment. I noticed this when looking at the {govdown} guidance page.

Example

Screenshot from the {govdown} guidance page rendered in Chrome. The right-aligned column called 'Right' contains serif fonts. Remaining columns are sans-serif.

Screen Shot 2019-06-05 at 16 31 47

The screenshot below is from a locally-knitted govdown Rmd showing that it doesn't matter where the right-aligned column is.

Screen Shot 2019-06-05 at 16 34 28

Reproducibility

This occurs for me regardless of browser (Chrome, Safari and Firefox) on my work Mac. I've also reproduced it locally by knitting a govdown Rmd containing tables produced in
markdown format and when using knitr::kable().

Wasn't a problem in @nacnudus's setup, I believe.

Potential cause

Misbehaviour of govuk-table__cell--numeric? Inspection in browser implies sans-serif font though.

Screen Shot 2019-06-05 at 12 00 16

@nacnudus
Copy link
Collaborator

nacnudus commented Jun 5, 2019

Confirmed. Thanks for the detailed the report.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants