Repository navigation
v1.0.1
Overview
🔧 Bug Fixes
- Snackbar: SnackbarPortal creates a stacking context so its z-index takes effect (#602)
- Snackbar: add an
urgentprop that switches the live region torole="alert"(#624) - createTokens: a token removed via its own
ticket.unregister()no longer leaves a stale value in the resolution cache (#567) - createTokens: resolve aliases reached through a segment path, return directly-passed TokenAlias literals, and cache chained resolutions (#566)
Patch Changes
-
#602
e866af7Thanks @sridhar-3009! - fix(Snackbar): SnackbarPortal creates a stacking context so its z-index takes effect (#602)The teleported snackbar region applied its stack z-index to a
position: staticelement, which CSS ignores — a body-fallback snackbar could render behind positioned page chrome regardless of its z-index.SnackbarPortalnow setsposition: relativealongside the z-index (visually neutral, no offsets) so the stacking context is established.Portal'szIndexslot prop is now documented to require a positioned element. -
#624
64b839cThanks @sridhar-3009! - fix(Snackbar): add anurgentprop that switches the live region torole="alert"(#624)Informational snackbars keep
role="status"(a polite live region); settingurgentswitches torole="alert"(assertive) so critical notifications interrupt assistive technology instead of waiting for it to go idle (WCAG 4.1.3, Status Messages). -
#567
05526f0Thanks @johnleider! - fix(createTokens): a token removed via its ownticket.unregister()no longer leaves a stale value in the resolution cache (#567)resolve()results were only invalidated through the context-level mutator methods, so removing a token via its ticket's ownunregister()— which is bound to the underlying registry — left the cache stale and subsequentresolve()calls returned the removed value. Cache invalidation now runs off registry mutation events, covering every removal and update path uniformly. -
#566
ff9c430Thanks @johnleider! - fix(createTokens): resolve aliases reached through a segment path, return directly-passed TokenAlias literals, and cache chained resolutions (#566)resolve()now follows a{alias}that a dotted-segment lookup lands on — previously it returned the raw'{alias}'string (visible underflat: true, where nested objects are stored whole and addressed by segment). ATokenAliasobject passed directly toresolve()now returns its$value(previously a non-alias$valuewas stringified and looked up as an id, yieldingundefined), and aliased resolutions cache the outer key rather than only the terminal hop.resolve<T = unknown>()also accepts an optional return-type parameter.