-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 figures in table cells #411
Conversation
font-feature-settings: "kern", "liga", "clig", "calt", "lnum", "tnum"; | ||
font-kerning: normal; | ||
font-variant-ligatures: common-ligatures, contextual; | ||
font-variant-numeric: lining-nums, tabular-nums; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown property font-variant-numeric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s real. I think Firefox uses it: https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric
I think I might be able to tell SCSS-Lint that this is an acceptable property within it’s config…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! Added in 23efbd1
23efbd1
to
bae779b
Compare
Very nice 👍 Just to double check, we want to only use those font settings on table cells? Any benefit/harm to doing them more broadly? |
@joshuaogle These specific settings, yes, just on table cells. Tabular numbers, for example, wouldn’t feel right within a paragraph. We can likely improve the type in many other areas, as well, though. I bet some helpful adjustments on form inputs, or other places where there’s some heavy data, could be nice. Let’s focus on those in other PR’s… |
bae779b
to
79a1080
Compare
🎉 |
Tabular figures are set on a fixed width, so that every figure occupies the same amount of horizontal space. Reference: http://practice.typekit.com/lesson/caring-about-opentype-features/
79a1080
to
e99a6ad
Compare
Changes: ``` * [#269] [FEATURE] Add a generator for copying default layout files * [#328] [FEATURE] Add a generator for copying default sidebar partial * [#362] [FEATURE] Add a generator for only the dashboard manifest. Customizing this manifest before running the `administrate:install` generator will change which dashboards get generated. * [#295] [FEATURE] Add dashboard detection for ActiveRecord::Enum fields. * [#364] [FEATURE] Improve dashboard generator by explicitly listing out the generated `SHOW_PAGE_ATTRIBUTES` array elements. * [#416] [UI] Add an accessibility label to the search input * [#411] [UI] Use tabular figures in table cells * [#409] [UI] Use default system fonts * [#424] [BUGFIX] Fix a bug where running `rails destroy GENERATOR_NAME` would not work for several of the generators * [#390] [BUGFIX] Fix timestamp deprecation warnings * [#365] [COMPAT] Remove dependency on `inline_svg` * [#396] [I18n] Ukrainian * [#297] [I18n] Italian * [#307] [I18n] Fix German grammatical errors * [#363] [DOC] Move documentation into main repository, at the root URL * [#395] [DOC] Update inline documentation for collection partial * [#387] [DOC] Fix incorrect path for generators in the docs ```
Changes: ``` * [#269] [FEATURE] Add a generator for copying default layout files * [#328] [FEATURE] Add a generator for copying default sidebar partial * [#362] [FEATURE] Add a generator for only the dashboard manifest. Customizing this manifest before running the `administrate:install` generator will change which dashboards get generated. * [#295] [FEATURE] Add dashboard detection for ActiveRecord::Enum fields. * [#364] [FEATURE] Improve dashboard generator by explicitly listing out the generated `SHOW_PAGE_ATTRIBUTES` array elements. * [#416] [UI] Add an accessibility label to the search input * [#411] [UI] Use tabular figures in table cells * [#409] [UI] Use default system fonts * [#424] [BUGFIX] Fix a bug where running `rails destroy GENERATOR_NAME` would not work for several of the generators * [#390] [BUGFIX] Fix timestamp deprecation warnings * [#365] [COMPAT] Remove dependency on `inline_svg` * [#396] [I18n] Ukrainian * [#297] [I18n] Italian * [#307] [I18n] Fix German grammatical errors * [#363] [DOC] Move documentation into main repository, at the root URL * [#395] [DOC] Update inline documentation for collection partial * [#387] [DOC] Fix incorrect path for generators in the docs ```
Tabular figures are set on a fixed width, so that every figure occupies the same
amount of horizontal space.
Reference: http://practice.typekit.com/lesson/caring-about-opentype-features/
Take a look at the “Lifetime Value” column in the GIF below and notice how after enabling this features, all of the numbers align horizontally making for a more readable experience.