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

Tweak naming and docs of font utility classes #18452

Merged
merged 1 commit into from
Dec 7, 2015
Merged

Conversation

cvrebert
Copy link
Collaborator

@cvrebert cvrebert commented Dec 7, 2015

  • .font-normal is way too generic (What does it make normal? There are many possibilities.). Rename it to .font-weight-normal for clarity.
  • Rename .font-bold to .font-weight-bold so as to parallel .font-weight-normal. I admit this rename is more debatable.
  • In docs, gloss "weight" term in relation to fonts for the benefit of non-typographiles.

Refs #18433.

@mdo
Copy link
Member

mdo commented Dec 7, 2015

Damn thanks. Normal text is an actual weight though, and the choices beyond these classes is not binary. You can have semibold, for example. Maybe leave it as normal in the docs since that's the accepted CSS value?

@cvrebert
Copy link
Collaborator Author

cvrebert commented Dec 7, 2015

Maybe leave it as normal in the docs since that's the accepted CSS value?

@mdo So you mean something like:

<p class="font-weight-normal">Normal weight text.</p>

?

@mdo
Copy link
Member

mdo commented Dec 7, 2015

Yup!

* `.font-normal` is too generic. Rename it to `.font-weight-normal` for clarity.
* Rename `.font-bold` to `.font-weight-bold` so as to parallel `.font-weight-normal`.
* In docs, gloss "weight" term in relation to fonts for the benefit of non-typographiles.

Refs #18433

[skip sauce]
@cvrebert
Copy link
Collaborator Author

cvrebert commented Dec 7, 2015

Changed.

cvrebert added a commit that referenced this pull request Dec 7, 2015
Tweak naming and docs of font utility classes
@cvrebert cvrebert merged commit 37955de into v4-dev Dec 7, 2015
@cvrebert cvrebert deleted the font-weight-utils branch December 7, 2015 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants