OpenNews / opennews-source

Code refactor for Source, a website that spotlights work from the developers, designers, and data analysts at the intersection of journalism and tech: https://source.opennews.org
MIT License
5 stars 3 forks source link

Font-weight thing #139

Open kissane opened 7 years ago

kissane commented 7 years ago

Yan0 notes:

looks like you need to update the site CSS so that 'strong' uses 'font-family: freight-text-pro-bold;' rather than 'freight-text-pro'

Which maybe gets to that unreproduceable font thing Lindsay was seeing awhile back with missing bolding.

beep commented 7 years ago

[ a wild BEEP appears ]

looks like you need to update the site CSS so that 'strong' uses 'font-family: freight-text-pro-bold;' rather than 'freight-text-pro'

Oh, hm. I don’t think that’s correct? In Typekit-ese, the family should be freight-text-pro, regardless of weight. (Which would get set with a font-weight value in our CSS.)

(My hunch on #136 was that it was down to poor contrast on my part; darkening the color might help?)

[ BEEP used HUNCH. It’s not very effective… ]

kissane commented 7 years ago

THE SUMMONING TOGGLE GOT LEFT ON AGAIN

thx beep we will investigaaaaate

kissane commented 7 years ago

Soooo I'm not sure what to do here. The bold looks legible to me, but there's apparently a situation in which it doesn't show up for some people at all. I'm inclined to leave this open and try to get screenshots and details the next time it arises.

ryanpitts commented 7 years ago

was David Yanofsky one of the people seeing this issue? maybe still screenshottable by him?

beep commented 7 years ago

If y’all can’t reproduce it internally, I might suggest looking into darkening the color a bit. Here’s what strong looks like now on my machine:

screen shot 2017-04-03 at 11 12 31 am

Here’s what it looks like a ~half a shade darker, at #333:

screen shot 2017-04-03 at 11 12 49 am

Miiiiiight give it an added visibility boost?

(apologies for sealioning in here, hi sorry showin’ myself out)

kissane commented 7 years ago

Thanks, @beep! This is awesome to have in a pocket!

@ryanpitts, I've asked David and will report back if he can replicate.

ryanpitts commented 7 years ago

@beep appreciate it! One thing I'm wondering about is how safe it might be to assign a color directly to b, strong ... just in case something else that has a color to it ends up wrapping one of those tags. But also wary of changing the src-text-default color as well.

beep commented 7 years ago

@ryanpitts Super great question, thank you! I think you’re right to be leery of changing src-text-default. (Unless, of course, you’d like to darken the text color globally, which, hey, that is also an option!)

As for adding a style to strong directly, I think that’d be 100% fine. I think you have two options in this area:

  1. Adding a global strong rule to _base.scss. I think this is fine, since we’re not really leaning on strong in other parts of the design—at least, not that I remember—and a global style’s probably a-OK.
  2. But! If that feels weird to you, it’d be tooootally fine to scope the change to .article-main. (i.e., .article-main strong { color: #333; }) If I was doing that, I’d add that to _core.scss.

Does that help at all? Basically, I think either approach is fine, it’s really about what feels right to you.

ryanpitts commented 7 years ago

@beep yep, that helps a ton. Will wait to see if @kissane hears back with some screenshots, and then deploy whatever makes most sense based on that.

kissane commented 7 years ago

This is what we got back from David, who is on Chrome Version 56.0.2924.87

screen shot 2017-04-03 at 11 40 28 am

kissane commented 7 years ago

(The org titles are meant to be bold, there)

beep commented 7 years ago

@kissane Thank you! Could I ask if you have a URL for that page?

kissane commented 7 years ago

Yes! https://source.opennews.org/articles/same-diff-trumps-budget-proposal/

Yes that would help, urn.

beep commented 7 years ago

HM. So yeah, this seems like a Chrome 56 bug. (Or some combination between Chrome 56, macOS, and Typekit.)

Here’s what I see on Chrome 57:

screen shot 2017-04-03 at 1 35 29 pm

Here’s what I see on Chrome 56 (via Browserstack):

screen shot 2017-04-03 at 1 37 10 pm

The weights are definitely not applying correctly, and I can’t seem to “fix” that with CSS. Definitely seems like a browser rendering bug.

(Worth noting, however, that darkening the color works just fine. The weight’s still busted, however.)

Given that Chrome’s one o’ them evergreen browsers, I miiiiiight suggest leaving it as-is, and let browser upgrades sort this out. Unless, of course, this is affecting a bunch of users! In which case, ignore me!

beep commented 7 years ago

(On re-previewing the images, it seems like the weights might be applied, but the artifacting on Browserstack might be obscuring it. So maybe it’s not showing the bug after all? idk idk)

kissane commented 7 years ago

I think we note this one as a Known Thing—thank you SO MUCH for the help, @beep!

beep commented 7 years ago

Any time, @kissane! Thanks for letting me sealion in here. <3