Skip to content

feat(ui): allow customizing Alert close control#93

Merged
wyf027 merged 3 commits into
mainfrom
codex/alert-close-customization-2026-07-08
Jul 7, 2026
Merged

feat(ui): allow customizing Alert close control#93
wyf027 merged 3 commits into
mainfrom
codex/alert-close-customization-2026-07-08

Conversation

@wyf027

@wyf027 wyf027 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add closeIcon and closeAriaLabel to Alert so dismiss controls can be localized or customized while keeping an accessible name.
  • Pass the close button click event to onClose, matching mature Alert APIs that expose close callbacks with event context.
  • Cover custom close controls in tests and update the VitePress example to use Tailwind layout classes.

Validation

  • GitHub Actions CI run 28903491031 passed for commit b9b07e81ebf5f360e9af6abdef317ab27c78880b.
  • CI quality job passed: Install, Lint UI, Typecheck UI, Test UI, Build UI, Build docs.
  • Local npm run lint:ui, npm run typecheck:ui, npm run test:ui, and npm run build could not be executed because the local shell runner failed to create a process in this Codex environment.

@wyf027
wyf027 merged commit 73ad6d9 into main Jul 7, 2026
1 check passed
@wyf027
wyf027 deleted the codex/alert-close-customization-2026-07-08 branch July 7, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant