Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tabular-nums in tables #14193

Merged
merged 2 commits into from Mar 31, 2019
Merged

Use tabular-nums in tables #14193

merged 2 commits into from Mar 31, 2019

Conversation

c960657
Copy link
Contributor

@c960657 c960657 commented Mar 12, 2019

Numeric data in tables look “jumpy” when using a font where digits have different widths. Using the tabular-nums font variant gets around this problem.

Without tabular-nums (with some gridlines added)
image

With tabular-nums
image

The above screenshots are made on MacOS.

This change does not to affect the screenshots made by Phantomjs on Travis, i.e. it seems that the the digits in the font used by Phantomjs all have equal width even without using tabular-nums.

@diosmosis diosmosis added this to the 3.10.0 milestone Mar 18, 2019
@diosmosis diosmosis added the Needs Review PRs that need a code review label Mar 18, 2019
@mattab mattab modified the milestones: 3.11.0, 3.10.0 Mar 19, 2019
Copy link
Member

@diosmosis diosmosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good, maybe @tsteur / @mattab have thoughts on how it looks?

@tsteur
Copy link
Member

tsteur commented Mar 26, 2019

Looks good 👍

@mattab
Copy link
Member

mattab commented Mar 26, 2019

Nice improvement, thanks for the PR! @c960657 👍

@sgiehl sgiehl merged commit 79b526d into matomo-org:3.x-dev Mar 31, 2019
@c960657 c960657 deleted the tabular-nums branch April 1, 2019 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants