kennethormandy / kennethormandy/normalize-opentype.css

Use tabular numerals for phone numbers?

Open
#11 2 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted question
Dominant language
HTML
Stars
786
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I realised it would be possible to use different numeral sets for phone numbers (and possibly other things) in certain context. For example, in a paragraph you might want a phone number with old-style numerals:

![screen shot 2014-07-24 at 3 44 32](https://cloud.githubusercontent.com/assets/1581276/3695805/59c3c5fe-1384-11e4-9618-0c1c199d7a40.png)

But in most other situations you’d probably prefer tabular numerals:

![screen shot 2014-07-24 at 3 45 47](https://cloud.githubusercontent.com/assets/1581276/3695806/5b8b7134-1384-11e4-8463-8aaac6450bc9.png)

I’m undecided if this within the scope of this reset. Probably my biggest deterrent is that it would use a less-than-popular selector:

``` css
a[href^="tel:"] {
font-feature-settings: "tnum" 1, "pnum" 1, "kern" 1; /* Etc. */
}
```

This particular feature might be better saved for a “Going beyond Normalize-OpenType.css” set of examples, which could include the features you need to have an opinion on to use, like stylistic sets. I’m pretty open to opinions on it.

Contributor guide

Open the contributing guide

Research direction

No implementation file or test is named. Start by reviewing the reset’s scope and the proposed a[href^="tel:"] selector, then decide whether tabular numerals belong in this project or in a separate examples set. Done means the scope is settled and the CSS or example direction is clearly defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.