Draft
Conversation
Copilot
AI
changed the title
[WIP] Add inline alert component for user notifications
feat: Component: InlineAlert
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the
InlineAlertcomponent across all 10 integration surfaces. InlineAlert is an inline contextual message for informing users within content flow, with info/positive/negative/notice variants, optional dismiss, and icon + title + description anatomy.Component tokens
Added
InlineAlertentry tofigma/exports/Patterns (UI).tokens.jsonwith 20 tokens (per-variant container background, border color, text color; shared border size, radius, padding, gap) aliasing existing semantic tokens. Regenerateddist/tokens/css/patterns-ui.tokens.css.CSS pattern —
src/ui/patterns/inline-alert.cssdefault,info,positive,negative,noticeuif-inline-alert-icon,uif-inline-alert-content,uif-inline-alert-title,uif-inline-alert-description,uif-inline-alert-dismiss.is-hidden(toggled on dismiss)Nunjucks macro —
site/_includes/macros/ui.njkAuto-selects a variant-appropriate icon; accepts
caller()for optional action slot.Web Component —
src/elements/ui-inline-alert.js<uif-inline-alert variant="negative" title="Error" dismissible></uif-inline-alert>Icon attribute is validated against
^[a-z0-9]+(?:-[a-z0-9]+)*$to prevent XSS. User-provided text is set viatextContentrather than interpolated intoinnerHTML. Firesuif-dismisson close.Other surfaces
site/patterns/inline-alert.md,site/patterns/inline-alert-playground.mdrenderVanillaInlineAlertadded tosite/assets/playground/renderers.jsschemas/web-inline-alert.figma.ts+schemas/web-inline-alert.ts(optional props)MIGRATION.mdcomponent-family map entry addedscripts/vault-naming-contract.generated.jsregenerated to includeinline-alerttests/inline-alert-naming-migration.test.mjs(8 tests covering CSS, tokens, emitters, element export, migration entry, docs)Review checklist
docs/terminology.md.docs/canonical-reference-matrix.mdis updated when new terms, rules, or canonical sources are introduced.@ui-foundations-maintainershas been notified for review.