From e2563e068d28934eb4989b6d3adedac8ab78ffc8 Mon Sep 17 00:00:00 2001 From: Bernhard Kau Date: Wed, 11 Oct 2023 12:05:12 +0200 Subject: [PATCH 1/2] Load other font weights and styles for the body-font Using a font name like `Google_Karla_400` for `body-font`, it would only load the 400 font weight. When using `Google_Karla_700` for another property, it would then load both the 400 and 700 fon weights. But since in CSS you could make something bold or italic, the font weight and/or style for this text might be missing, as it was not loaded automatically by using it in another property. This PR will make sure that the most common font weights and font styles will be loaded for the body font. --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index 552c285ca2..029a92e8d4 100644 --- a/config.json +++ b/config.json @@ -103,7 +103,7 @@ "default_image_brand": "img/BrandDefault.gif", "default_image_product": "img/ProductDefault.gif", "default_image_gift_certificate": "img/GiftCertificate.png", - "body-font": "Google_Karla_400", + "body-font": "Google_Karla_400,400i,700,700i", "headings-font": "Google_Montserrat_400", "fontSize-root": 14, "fontSize-h1": 28, From fe7df8302812f7146d7c8c6adda7034af164c03c Mon Sep 17 00:00:00 2001 From: Volodymyr Krasnoshapka <88093058+BC-krasnoshapka@users.noreply.github.com> Date: Thu, 4 Jul 2024 09:57:36 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2ea897af6..cc7b3fdc6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Display fees on cart page [#2376](https://github.com/bigcommerce/cornerstone/pull/2376) - Replace Twitter logo with X logo within social sharing and social link components [#2387](https://github.com/bigcommerce/cornerstone/pull/2387) - Added nvm config [#2389](https://github.com/bigcommerce/cornerstone/pull/2389) -- Displaying the Hidden cart_order_source Input Field on PDP page [#2392](https://github.com/bigcommerce/cornerstone/pull/2392) +- Displaying the Hidden cart_order_source Input Field on PDP page [#2392](https://github.com/bigcommerce/cornerstone/pull/2392) +- Load other font weights and styles for the body-font [#2396](https://github.com/bigcommerce/cornerstone/pull/2396) ## 6.12.0 (07-06-2023) - sync package lock file [#2373](https://github.com/bigcommerce/cornerstone/pull/2373)