international-labour-organization / designsystem

A design system for the International Labour Organization
Apache License 2.0
1 stars 3 forks source link

Promo card: narrow size needs a different heading style #1020

Open inesdgomes opened 5 months ago

inesdgomes commented 5 months ago

When the graphic promo is used with a 'narrow' size, the style of the heading should change from H2 to H3.

Screenshot 2024-05-15 at 13 59 29 Screenshot 2024-05-15 at 14 00 23

Example here: https://iloorgstg.prod.acquia-sites.com/resource/article/test-page

justintemps commented 5 months ago

Hey @inesdgomes, as agreed, the card takes a parameter that allows a developer to set the heading level. I don't think we should implement this in the DS, it belongs with users.

inesdgomes commented 5 months ago

@justintemps As mentioned in the title and in the description, the heading style needs to be different, even if we don't set the headings levels in DS. What I mean is that the font needs to be aligned with the properties defined for H3. If the card is narrower, the font needs to be smaller.

inesdgomes commented 5 months ago

@justintemps Here's why this is needed: https://www.ilo.org/resource/news/asia-pacific-labour-markets-show-recovery-amidst-looming-demographic

Screenshot 2024-05-28 at 14 02 19
inesdgomes commented 2 months ago

@justintemps can we move this to sprint 15?

inesdgomes commented 1 month ago

Hi @justintemps Any chance this could be actioned soon? One more example: https://www.ilo.org/resource/article/global-employment-trends-youth-2024-figures#recovery

Screenshot 2024-09-09 at 15 39 23