Shows section headings in letter-spaced capitals

SectionHeading gets the new sectionHeading text style: uppercase, the shared caps letter-spacing, 26px on phones and 30px from md. The text in the DOM does not change, so accessible names stay as they are. The plain sectionTitle style stays for the headings that do not use SectionHeading.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 01:24:14 +01:00
co-authored by Claude Sonnet 5.5
parent c8ca5eb372
commit 9a2e84e4b2
3 changed files with 49 additions and 4 deletions
@@ -16,8 +16,9 @@ type SectionHeadingProps = {
focusable?: boolean;
};
// Heading block of a homepage section (design .section__head): optional
// small label, the h2 and an optional intro sentence.
// Heading block of a section (design .section__head): optional small label,
// the h2 in letter-spaced capitals (the case is only CSS, the text stays as
// given) and an optional intro sentence.
export default function SectionHeading({
id,
title,
@@ -40,7 +41,7 @@ export default function SectionHeading({
<Heading
as="h2"
id={id}
textStyle="sectionTitle"
textStyle="sectionHeading"
tabIndex={focusable ? -1 : undefined}
>
{title}