ant-design/components
Thibault Derousseaux 43abea3212 Use tabular-nums font variant instead of switching to Tahoma for figures
Using a completely different font for figures leads to inconsistencies: https://github.com/ant-design/ant-design/issues/9422.
Most modern font systems defaults to [tabular figures](https://www.fonts.com/content/learning/fontology/level-3/numbers/proportional-vs-tabular-figures).
One exception to this is Apple's San Francisco which defaults to [proportional figures](http://martiancraft.com/blog/2015/10/san-francisco-part-2/#special-features-numerals).
There is, however, an official and clean way to switch to tabular figures. It's the [`font-variant` CSS property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric) that can be set to `tabular-nums`.

This commit removes the "Monospaced Number" font altogether and use `font-variant: tabular-nums` instead where it was used.
It also moves closer to the sans-serif and monospace [system font stacks used by GitHub](http://markdotto.com/2018/02/07/github-system-fonts/).
2018-08-04 11:28:14 +08:00
..
__tests__ update test snap 2018-07-13 22:23:12 +08:00
_util optimization: Fix problems found in review 2018-07-13 22:23:12 +08:00
affix upgrade eslint-config-airbnb 2018-06-27 16:09:58 +08:00
alert Merge branch 'master' into feature-3.7.0 2018-07-11 22:21:01 +08:00
anchor fix: anchorLink href update 2018-07-16 17:31:32 +08:00
auto-complete fix(auto-complete): add missing autoFocus prop in type 2018-08-02 10:48:38 +08:00
avatar Avatar custom size (#11419) 2018-08-02 20:25:14 +08:00
back-top [WIP] Use raf to replace getRequestAnimationFrame (#10614) 2018-05-22 13:01:28 +08:00
badge fix: badge type error. 2018-07-24 00:01:26 +08:00
breadcrumb upgrade eslint-config-airbnb 2018-06-27 16:09:58 +08:00
button update button snapshots 2018-07-31 18:42:12 +08:00
calendar feat: add onChange for Calendar 2018-07-30 17:57:34 +08:00
card fix tabs ci in React 15 2018-07-31 15:50:27 +08:00
carousel upgrade eslint-config-airbnb 2018-06-27 16:09:58 +08:00
cascader docs: Add instruction about cascader typo api 2018-07-29 00:05:44 +08:00
checkbox Merge branch 'master' into feature-3.8.0 2018-07-24 14:55:53 +08:00
col export components interface (#7654) 2017-09-25 22:14:49 +08:00
collapse Update index.en-US.md 2018-06-30 18:51:32 +08:00
date-picker Use tabular-nums font variant instead of switching to Tahoma for figures 2018-08-04 11:28:14 +08:00
divider fix error in typescript@3.x 2018-08-01 15:43:47 +08:00
drawer add wrapClassName and multi-level-drawer test 2018-07-22 11:55:46 +08:00
dropdown Merge branch 'master' into feature-3.7.0 2018-06-27 16:14:14 +08:00
form Merge branch 'master' into feature-3.8.0 2018-08-03 23:16:08 +08:00
grid Update index.zh-CN.md 2018-06-27 17:52:05 +08:00
icon Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
input export event for input.group 2018-08-02 12:14:21 +08:00
input-number fixed typo in InputNumber docs 2018-07-28 13:03:37 +08:00
layout 💬 update layout copyrights year and fix typos 2018-07-29 01:15:02 +08:00
list upgrade eslint-config-airbnb 2018-06-27 16:09:58 +08:00
locale-provider Change Transfer moving buttons order for convention 2018-07-20 18:15:04 +08:00
mention 💬 misc typos and blank spaces fixes 2018-07-29 01:15:02 +08:00
menu Fix the style of horizontal menu on dark theme 2018-07-22 11:58:33 +08:00
message add @message-notice-content-padding var to <Message /> 2018-07-18 22:17:12 +08:00
modal Merge branch 'master' into feature-3.8.0 2018-08-03 23:16:08 +08:00
notification add notification.open to API docs (#11281) 2018-07-18 14:55:47 +08:00
pagination Update Pagination Typescript definition to include "role" (#11474) 2018-07-27 15:14:20 +08:00
popconfirm Merge branch 'master' into feature-3.8.0 2018-07-29 15:06:36 +08:00
popover demo: upgrade popover demo 2018-07-29 15:23:30 +08:00
progress 💬 misc typos and blank spaces fixes 2018-07-29 01:15:02 +08:00
radio Merge branch 'master' into feature-3.8.0 2018-07-24 14:55:53 +08:00
rate upgrade eslint-config-airbnb 2018-06-27 16:09:58 +08:00
row export components interface (#7654) 2017-09-25 22:14:49 +08:00
select 💬 misc typos and blank spaces fixes 2018-07-29 01:15:02 +08:00
slider site: Add ErrorBoundary for live demo, ref #11553 2018-08-02 16:34:04 +08:00
spin Merge branch 'master' into feature-3.7.0 2018-06-27 16:14:14 +08:00
steps Use tabular-nums font variant instead of switching to Tahoma for figures 2018-08-04 11:28:14 +08:00
style Use tabular-nums font variant instead of switching to Tahoma for figures 2018-08-04 11:28:14 +08:00
switch Fix switch overflow in certain situation, close #9928 2018-07-16 19:47:28 +08:00
table Merge branch 'master' into feature-3.8.0 2018-08-03 23:16:08 +08:00
tabs fix tabs ci in React 15 2018-07-31 15:50:27 +08:00
tag Merge branch 'master' into feature-3.7.0 2018-06-27 16:14:14 +08:00
time-picker Use tabular-nums font variant instead of switching to Tahoma for figures 2018-08-04 11:28:14 +08:00
timeline CH md translation applied. 2018-08-01 00:09:50 +08:00
tooltip add test case for input.group in tooltip 2018-08-02 12:14:21 +08:00
transfer Merge branch 'master' into feature-3.8.0 2018-08-03 23:16:08 +08:00
tree Merge branch 'master' into feature-3.8.0 2018-07-30 17:58:21 +08:00
tree-select changing the interface of TreeSelect, updating docs (#11538) 2018-08-03 17:12:51 +08:00
upload Merge branch 'master' into feature-3.8.0 2018-08-03 23:16:08 +08:00
version refactor version import 2017-02-13 14:57:04 +08:00
index.tsx simple demo 2018-07-13 22:23:12 +08:00