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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user