Skip to content

EmSnackbar: error variants announce politely — urgent is unreachable #803

Description

@johnleider

Found during the extends-sweep (PR #802) while documenting withheld props.

Emerald's EmSnackbar withholds v0's urgent prop, and variant only sets data-variant (consumed exclusively by CSS). v0's urgent is what switches role="alert" vs role="status" and routes to the Portal announcer's assertive region — so every Emerald snackbar, including variant="error", renders role="status" and is announced politely. A destructive-failure toast looks urgent and announces like a status update.

Two candidate fixes (both change public surface, hence out of the type-fidelity sweep):

  1. Expose urgent (Pick it through) — consumer-controlled, matches v0.
  2. Derive it from variant (error → assertive), optionally with urgent as an override.

Option 2 fits Emerald's variant-driven design language; option 1 is the smaller surface promise. The withholding comment added in #802 documents the current behavior either way.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions