From 57f8a4ae690b22bf1ef06d5e0966d226dfb09771 Mon Sep 17 00:00:00 2001 From: Brendon Muir Date: Fri, 22 Nov 2024 11:23:18 +1300 Subject: [PATCH] Add .has-text-weight-extrabold Since the variable $weight-extrabold exists, it makes sense to add .has-text-weight-extrabold as a typography class. Updated examples and harmonised the css weight vs the description of semi-bold (semibold). --- docs/documentation/helpers/typography-helpers.html | 10 +++++++++- sass/helpers/typography.scss | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/documentation/helpers/typography-helpers.html b/docs/documentation/helpers/typography-helpers.html index e4beffb7..cef11b7e 100644 --- a/docs/documentation/helpers/typography-helpers.html +++ b/docs/documentation/helpers/typography-helpers.html @@ -333,7 +333,15 @@ breadcrumb: has-text-weight-bold - Transforms text weight to bold + Transforms text weight to + bold + + + + has-text-weight-extrabold + + Transforms text weight to + extrabold diff --git a/sass/helpers/typography.scss b/sass/helpers/typography.scss index e5c29595..410093e8 100644 --- a/sass/helpers/typography.scss +++ b/sass/helpers/typography.scss @@ -149,6 +149,10 @@ $alignments: ( font-weight: iv.$weight-bold !important; } +.#{iv.$helpers-has-prefix}text-weight-extrabold { + font-weight: iv.$weight-extrabold !important; +} + .#{iv.$helpers-prefix}family-primary { font-family: dv.$family-primary !important; } -- 2.47.3