Skip to content

Conversation

@tvst
Copy link
Contributor

@tvst tvst commented Aug 9, 2021

(Breaking up #3642 into multiple PRs)

  • Update base font sizes (in preparation for a subsequent PR where I change the default font to Source Sans, which is visually smaller)
  • Update secondary, sub, and header font sizes
  • Update content width to better accommodate new font

NOTE: Screenshot tests coming after first round of reviews. Don't want to generate and re-generate as more reviews come in 😅

NOTE #2: Note the base branch for this PR. I'm basing it on the previous UI tweaks PR so the diff is easier to read. The idea is to merge in order.

@tvst tvst changed the base branch from develop to feature/ui-1-colors August 9, 2021 03:05
Copy link
Collaborator

@kmcgrady kmcgrady left a comment

Choose a reason for hiding this comment

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

The implications are pretty easy to grok. Been testing with a few examples, and the font is slightly bigger.

The main concern surrounds the px vs rem usage (see comments).

$small-font-size: 0.875em !default;
$sub-sup-font-size: 0.75em !default;
$small-font-size: 14px !default; // Same as fontSizeSmall in typography.ts
$sub-sup-font-size: 12px !default; // Same as fontSizeTwoSmall in typography.ts
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here. This is originally from Bootstrap's variable files, but if the base is set in the HTML tag, shouldn't be easily an rem

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but if the base is set in the HTML tag, shouldn't be easily an rem

These are used in reboot.scss to set the size of <small> and <sub>/<sub>. If I change them to rem they'll have to be something like 0.777778rem and 0.666667rem. Is that OK with you?

By the way, I'd love for us to move these variables from SASS to CSS --custom-properties. This way we could share them across CSS and TS files directly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yea. That could work. There's a couple Sass functions that we use. We can try to remove them or recreate them not as a function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Want me to do this in this PR? Or is that a future improvement?

Copy link
Collaborator

@kmcgrady kmcgrady left a comment

Choose a reason for hiding this comment

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

Something weird happens for the buttons for number input here. Not sure if it's intentional.

4E0C1866-8F5B-4B2C-94E1-2790ECCB8EAF

@tvst
Copy link
Contributor Author

tvst commented Aug 24, 2021

Something weird happens for the buttons for number input here. Not sure if it's intentional.

4E0C1866-8F5B-4B2C-94E1-2790ECCB8EAF

Great catch!

Fixed in c916a53 by removing the hard-coded height and using flex instead.

@kmcgrady
Copy link
Collaborator

Looks great here. TIL the stretch keyword.

@tvst tvst force-pushed the feature/ui-2-fontsizes branch from c916a53 to 569e708 Compare August 24, 2021 03:42
@tvst
Copy link
Contributor Author

tvst commented Aug 24, 2021

Good to merge onto the feature branch, then?

@tvst tvst requested a review from kmcgrady August 24, 2021 16:59
Base automatically changed from feature/ui-1-colors to feature/ui-updates August 24, 2021 17:00
@kmcgrady
Copy link
Collaborator

@tvst Good to merge (save for the merge conflict).

@tvst tvst force-pushed the feature/ui-2-fontsizes branch from dc50a3a to f2f2e1f Compare August 25, 2021 05:31
@tvst
Copy link
Contributor Author

tvst commented Aug 25, 2021

Fixed.

I also noticed I had missed two things:

  • Sidebar headers were smaller than main headers.
  • fourXL font size was never used; at the same time the h1 size didn't exist in typography.ts. So I made fourXL match h1.

PTAL one last time before I merge!

@kmcgrady
Copy link
Collaborator

@tvst Looks good. Can merge with the exception of that conflict needing addressed.

@tvst tvst force-pushed the feature/ui-2-fontsizes branch from f2f2e1f to e563676 Compare August 26, 2021 06:09
@tvst tvst merged commit a5abb81 into feature/ui-updates Aug 26, 2021
@tvst tvst deleted the feature/ui-2-fontsizes branch August 26, 2021 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants