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:
+13
-1
@@ -197,7 +197,19 @@ const config = defineConfig({
|
||||
lineHeight: '1',
|
||||
},
|
||||
},
|
||||
// The h2 of a homepage section (SectionHeading); smaller than the
|
||||
// The h2 of a section block (SectionHeading): letter-spaced
|
||||
// capitals, as on the live site. 26px on phones, 30px from md.
|
||||
sectionHeading: {
|
||||
value: {
|
||||
fontFamily: 'heading',
|
||||
fontSize: { base: '1.625rem', md: '1.875rem' },
|
||||
lineHeight: '1.15',
|
||||
letterSpacing: 'caps',
|
||||
textTransform: 'uppercase',
|
||||
},
|
||||
},
|
||||
// Plain h2 in blocks that do not use SectionHeading (call to
|
||||
// action, packages, shoot and story blocks); smaller than the
|
||||
// design's 2.5rem at the owner's request, 30px at every width
|
||||
sectionTitle: {
|
||||
value: {
|
||||
|
||||
Reference in New Issue
Block a user