2metres / typographic

Easy SCSS or Stylus responsive typography with vertical rhythm, modular scale, font stacks, and more.
http://2metres.github.io/typographic
MIT License
687 stars 36 forks source link

Change "header" to "heading" #46

Closed janwirth closed 8 years ago

corysimmons commented 8 years ago

Is this just a preference or is there something I'm missing?

Also, you'd need to version bump package.json according to semver and completely remove the version field in bower.json.

janwirth commented 8 years ago

TL;DR;

header -> <header> heading -> <h1>, <h2>, <h3>, ...

I'm not a native english speaker and I was hitting the dict before filing this request. AFAIK: h1 etc are headings or headlines of text bodies. Multiple headings per page are possible. a header is what I would use the HTML5 <header> element for. A singular bar at the top of the pape.

So like pretty much everything it's debatable but I am pretty convinced 'heading' is the more correct term in the frontend-o-sphere for what the code is describing.

corysimmons commented 8 years ago

Yup, Google'd for about 3 minutes before I realized what a tragic mistake I've made.

I'll merge this if you add the package.json and bower.json version modifications I asked for. :+1:

janwirth commented 8 years ago

Did I tell you I suck at reading? On it.

corysimmons commented 8 years ago

That reminds me. I haven't read a book in years... Now I'm sad... and stupid...

janwirth commented 8 years ago

semver isn't about odd or even version numbers, right? This was some other thing. So just a minor bump.

janwirth commented 8 years ago

I'm just praying I did not break something. grep returns no occurences for header though.

corysimmons commented 8 years ago

No it's a major version bump because it breaks the API.

If I have a SCSS file that looks like this:

h3 {
  @include t-header();
}

And I update my Bower and recompile my site, it's not going to work anymore.

janwirth commented 8 years ago

You're right. Like this?

corysimmons commented 8 years ago

image

^ what's it say :D

janwirth commented 8 years ago

It says that I am a bad person. :no_good: GitHub #1 social platform.

corysimmons commented 8 years ago

:+1: :100:

corysimmons commented 8 years ago

Thanks sir!

janwirth commented 8 years ago

This was way to granular. Glad if I can give something back :facepunch: