Problem/Motivation

Heading font-sizes are still using values inherited from Seven which doesn't match values in described in the design system.

Proposed resolution

Update heading font-sizes and line-heights to match with the design system.

Remaining tasks

  1. Document heading line-heights in the design system
  2. Implement font-size and line-height here

Comments

lauriii created an issue. See original summary.

ckrina’s picture

Issue summary: View changes
StatusFileSize
new139.63 KB
fhaeberle’s picture

Issue tags: +Novice
ant1’s picture

Status: Active » Needs review
StatusFileSize
new2.29 KB

Patch provided with updates to the heading's line-heights & font-sizes.

Remark:
Changing the line-height value of .page-title changes the distance between the title and the breadcrumbs above it.
The Content Header specs haven't been updated with new line-height value, unless of course it is meant to remain the same (1.5).
In the patch I declared its line-height to be 1.15.

lauriii’s picture

Status: Needs review » Needs work
+++ b/css/src/components/page-title.css
@@ -9,7 +9,7 @@
-  line-height: var(--line-height);
+  line-height: var(--line-height-heading);

I think we should revert this change since the content header design hasn't been changed.

ant1’s picture

Status: Needs work » Needs review
StatusFileSize
new1.88 KB
new422 bytes

.page-title's line-height has been reverted.

huzooka’s picture

Status: Needs review » Needs work
  1. Design is still unclear (at least for me). I cannot decide which one to prefer: 130% or 1.15? They aren't equal!
  2. I'd be happy if we would have a multi-line example as well, and I'm sure that it would be helpful for everyone not just me.

Note: the design (I mean the look) of the Heading1 tag suggests something else than its own documentation.

lauriii’s picture

+++ b/css/src/base/variables.css
@@ -43,6 +43,7 @@
+  --line-height-heading: 1.15;

It seems that the design system standardized on 1.3, so we should update this.

ckrina’s picture

#7.1: Sorry, I copy/pasted too fast. It should be 130%/1.3. Specs updated on Figma.
#7.2: Also examples added in the specs.

fhaeberle’s picture

Status: Needs work » Needs review
StatusFileSize
new1.88 KB
new591 bytes

Updated the --line-height-heading variable! :) Hopefully there's nothing left.

huzooka’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new784.65 KB

This is RTBC.

Screenshot attached (markup provided by Style Guide.

lauriii’s picture

Issue tags: +Needs followup
StatusFileSize
new221.19 KB

This causes some regressions to the status report page. Let's open a follow-up to fix that.

huzooka’s picture

Re #12:
How does that page look without the patch?

lauriii’s picture

Issue summary: View changes
StatusFileSize
new192.7 KB

Here's how this looks like in alpha5:

lauriii’s picture

  • lauriii committed 119b8c9 on 8.x-1.x
    Issue #3083231 by AntoineH, fhaeberle, lauriii, huzooka, ckrina: Update...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Patch looks good and we have a follow-up! Thank you all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.