Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.

Conversation

@jimmynotjim
Copy link
Contributor

Updating web type spacing and leading

Changes

  • Updated text leading (line-height) to match recommendation from DM issue #349
  • Updated text top and bottom margins to match recommendation from DM issue #269

Fixes

  • Fixed subheader font-weight

Testing

  • Check the demo page at /demo/index.html and scroll to heading section
  • Install to your project with bower install [email protected]:jimmynotjim/cf-core.git#d9f0266 if you do this, you'll have to uninstall it and then install the regular cf-core when done testing

Review

Screenshots

screen shot 2015-10-26 at 5 47 57 pm

screen shot 2015-10-26 at 4 34 11 pm

## Notes - We are no longer optically adjusting margins/padding to match design mockups pixel perfectly ## Checklist - [x] Changes are limited to a single goal (no scope creep) - [x] Code can be automatically merged (no conflicts) - [ ] Code follows the standards laid out in the [front end playbook](https://github.com/cfpb/front-end) - [ ] Passes all existing automated tests - [ ] New functions include new tests - [ ] New functions are documented (with a description, list of inputs, and expected output) - [ ] Placeholder code is flagged - [ ] Visually tested in supported browsers and devices - [ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)

src/cf-base.less Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably get changed to 30 at this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so because 20px matches the main headings and when we were discussing it I remember @nataliafitzgerald specifically asking me if it was 20px.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But there's no line-height to deal with in the table/figure, and uncertain whether there is any below, too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it was always wrong for table and figure? Make sure you expand the view, because this includes

 p,
 ul,
 ol,
 dl,

as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, that's what I was missing. I think we probably should split these out into the first four and the last two, and update the last two.

@Scotchester
Copy link
Contributor

👍 but merge conflicts

@Scotchester
Copy link
Contributor

Ok, @nataliafitzgerald and I have tested this thoroughly. Please update by following the adjustments made in cf-type-testing's cf-enhancements.less file.

Not reflected there, but also needing to be added to this file, is the rule for 30px between adjacent headings.

Let me know if you have any questions.

@Scotchester
Copy link
Contributor

P.S.: Please also add the list styling as shown in that file, as well.

jimmynotjim and others added 8 commits November 18, 2015 15:30
- Updated text leading (line-height) to match recommendation from DM issue #349
- Updated text top and bottom margins to match recommendation from DM issue #269
- Fixed subheader font-weight
- We are no longer optically adjusting margins/padding to match design mockups pixel perfectly
- Updated text leading (line-height) to match recommendation from DM issue #349
- Updated text top and bottom margins to match recommendation from DM issue #269
- Fixed subheader font-weight
- We are no longer optically adjusting margins/padding to match design mockups pixel perfectly
CHANGELOG.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we abbreviate this to CFPB Design Manual or include a link to the issue instead? DM is a little jargony.

@KimberlyMunoz
Copy link
Contributor

👍 I pulled this into v1 and it looks good!

@Scotchester
Copy link
Contributor

👍 At long last. Thanks, @jimmynotjim!

Scotchester added a commit that referenced this pull request Nov 18, 2015
Updating web type spacing and leading
@Scotchester Scotchester merged commit 623945c into cfpb:gh-pages Nov 18, 2015
@jimmynotjim jimmynotjim deleted the type-sizing branch November 18, 2015 23:09
@nataliafitzgerald
Copy link
Contributor

At long last indeed. Extra special thanks to @jjames @jimmynotjim and @Scotchester

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants