You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7c0f6d2
Browse filesBrowse the repository at this point in the historyBrowse files
fix(Dialog): an explicit autofocus request wins over a header's title, and Lab can read the Dialog context through an internal entry
Dialog now honors only eligible initial-focus requests (component:Dialog FR2):
a request inside a hidden or inert subtree is skipped, and a request that
cannot take focus falls through to the next one. A header's default title
request (data-autofocus="dialog-title") comes after every explicit request.
The Dialog context gains syncDefaultName(), so a composed header whose title
renders after mount can ask Dialog to check its default name again.
@astryxdesign/core/internal/dialog-context re-exports useDialogContext for
Astryx's own packages only (spec:AST-017 FR21), the same shape as
internal/tokenizer-presentation.
Part of #4182. Split out of #5105.
[fix] Dialog: when the opening Dialog's first data-autofocus request is hidden, inert, or cannot take focus, the next request takes it; a header's default title request comes after every explicit request (#4182)
[chore] Internal: an internal entry reserved for Astryx's own packages exposes the Dialog's title id and inline state, so Lab's upcoming DialogHeroHeader can name the dialog and request title focus the way DialogHeader does; nothing a consumer sees changes (#4182)
0 commit comments