Skip to content

Commit 9a05f56

Browse files
cixzhangjiunshinn
andcommitted
feat(lab): DialogHeroHeader
A hero-style Dialog header for Lab: media above a title and description, composed inside an Astryx Dialog, naming the dialog and requesting title focus through the internal Dialog context. Carries jiunshinn's component, tests, doc and story from #5105, as of its handshake fix (the rendered heading drives the handshake, so a re-render keeps focus and a late heading still names the dialog). Co-authored-by: jiunshinn <jiun.dev@gmail.com>
1 parent fad9909 commit 9a05f56

8 files changed

Lines changed: 1878 additions & 0 deletions

File tree

‎.github/scripts/story-play-guard.js‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,20 @@ const TARGETS = [
347347
guards:
348348
'the rendered RTL wrapper mirrors fixed-track item order while responsive and span geometry remain bounded',
349349
},
350+
{
351+
component: 'DialogHeroHeader',
352+
story: 'lab-dialogheroheader--media-bleed-geometry',
353+
guards:
354+
'media reaches the dialog edges at theme-default, 0/2/8 padding, a ' +
355+
'theme override, and RTL while the title keeps the cancelled inset',
356+
},
357+
{
358+
component: 'DialogHeroHeader',
359+
story: 'lab-dialogheroheader--custom-heading-focus-after-rerender',
360+
guards:
361+
'a custom heading keeps focus and keeps naming the open modal while ' +
362+
'the header re-renders with a new title element',
363+
},
350364
{
351365
component: 'TabList',
352366
story: 'core-tablist--full-bleed-geometry',

0 commit comments

Comments
 (0)