Olivero's H1 tags are designed with the Metropolis sans-serif font.

However, if the content-editor places a H1 tag into CKEditor (hopefully they will not do this!), it will inherit the Lora serif font.

We need to set the H1 tag to use Metropolis within the .text-content class (which gets applied to all fields that have formatted text).

Comments

mherchel created an issue. See original summary.

hansa11’s picture

Assigned: Unassigned » hansa11
hansa11’s picture

StatusFileSize
new1006 bytes
new198.58 KB
new162.89 KB

Before Patch:
before patch 3

After Patch:
after patch

hansa11’s picture

I just realized this will be needed for other heading levels too.

hansa11’s picture

StatusFileSize
new1.52 KB
new79.83 KB
new70.72 KB

This patch includes the change for all the heading levels when placed inside of the class `text-content`.

Before patch:

before patch 5

After patch:

before patch 5

Please review.

Thanks!

hansa11’s picture

Assigned: hansa11 » Unassigned
Status: Active » Needs review
abhijith s’s picture

StatusFileSize
new17.73 KB
new110.67 KB

Applied patch #5 . Now the H1 tag to use Metropolis within the text content.
Including screenshots

Before :
before

After:
after

RTBC

abhijith s’s picture

Status: Needs review » Reviewed & tested by the community
mherchel’s picture

Status: Reviewed & tested by the community » Needs work

This looks and works great, but I think we should move the font-family rules to global rules (the header fonts should never not be sans-serif) within base.pcss.css.

Thank you, and sorry I didn't specify this earlier 😃

santosh_verma’s picture

Assigned: Unassigned » santosh_verma
santosh_verma’s picture

Assigned: santosh_verma » Unassigned
Status: Needs work » Needs review
StatusFileSize
new427 bytes

I have added the H1 font family in base.pcss.css

mherchel’s picture

Status: Needs review » Needs work

We also should ensure that the h2, h3, and h4 fonts are also set to sans-serif.

@Santosh_Verma When you submit the patch, also please include the compiled files.

komalk’s picture

Assigned: Unassigned » komalk
komalk’s picture

Assigned: komalk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new63.54 KB
new99.11 KB
new84.14 KB
new81.67 KB
new1.98 KB
new1.77 KB

Worked on #12.
Attached screenshot for the reference review patch.

mherchel’s picture

Status: Needs review » Needs work
+++ b/core/themes/olivero/css/components/text-content.css
@@ -13,7 +13,6 @@
-  font-family: "Lora", "georgia", serif;

Not sure why you're yanking this out. This changes the body text font. This should be left alone. Be sure to test your patches pls :)

komalk’s picture

Assigned: Unassigned » komalk
komalk’s picture

Assigned: komalk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.69 KB
new781 bytes

Worked on #15.
@mherchel Thank you for the review.
Here is the new patch.

mherchel’s picture

Status: Needs review » Reviewed & tested by the community

#17 looks good!

lauriii’s picture

Committed 0fbdf54 and pushed to 9.2.x. Thanks!

Leaving open for backport to 9.1.x.

  • lauriii committed 0fbdf54 on 9.2.x
    Issue #3179150 by komalk, hansa11, Santosh_Verma, Abhijith S, mherchel:...

  • lauriii committed 414643c on 9.1.x
    Issue #3179150 by komalk, hansa11, Santosh_Verma, Abhijith S, mherchel:...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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