Should we audit and replace other usages?
@mmtr Please do! The more inconsistencies we can reduce, the better. :)
_Originally posted by @lcollette in https://github.com/Automattic/wp-calypso/pull/39569#issuecomment-589421427_
I'm creating an issue to track replacing 300 weight fonts across Calypso with 400 weight, which is more readable and looks better overall. Our typography documentation suggests we use 400 weight by default: https://wpcalypso.wordpress.com/devdocs/typography
FeaturesComponent
which doesn't appear to be active anywhere)@sixhours Are you also working on the remaining files or shall I work on those?
@sixhours Are you also working on the remaining files or shall I work on those?
You are absolutely welcome to pick up a bunch! I have been at a meetup so haven't had a chance to turn my attention back to this. I'd just recommend doing them in batches so the resulting PRs are easier for folks to test. :)
@sixhours Thanks for your reply. I鈥檒l do them in batches, as suggested by you. 馃榾
@sixhours Can you tell me how I can identify which file affects which route in Calypso? E.g. the files client/me/account-close/closed.scss
, client/me/account-close/confirm-dialog.scss
& client/me/account-close/style.scss
affect the route .../me/account/close. For other files, e.g. client/landing/domains/content-card/style.scss
I would not know which route is affected as the route .../landing/domains does not exist.
Great question! Usually what I do is search for the class name or names in Github to see where else they're used across Calypso. So if you had the class .domains__landing-page
(totally made up) I'd search for domains__landing-page
in the wp-calypso repo to see which JSX file(s) it pops up in, which usually clues me into where I'd find those sections on the front end.
Sometimes you won't find them unless a certain condition is true -- like if a domain has status of "DNS configuration required" (random example) that isn't reflected in any of my test sites. That'll require more digging to figure out how to fake the conditions to display on the front end. If I get too far down a rabbit hole there, I'll just note it in the ticket above ("Couldn't figure out how to trigger this") and move on for now.
Sometimes I'm not able to find the class names at all, which I've indicated above with "(Found no instances of this in action)" -- that could mean we can remove those styles. I'm saving that for a different set of commits, though, to prevent breakage.
It's also possible there is a better way to track these things down, but I'm not aware of it. 馃檭 Let me know if that makes sense!
That makes sense and thanks for your detailed explanation. This should definitely help to identify most of the affected sections. 馃榾