Skip to content

feat(apollo-vertex): add dismissible prop to Alert#407

Open
creilly11235 wants to merge 1 commit intomainfrom
apollo-alerts
Open

feat(apollo-vertex): add dismissible prop to Alert#407
creilly11235 wants to merge 1 commit intomainfrom
apollo-alerts

Conversation

@creilly11235
Copy link
Collaborator

Summary

  • Adds first-class dismissible boolean prop and onDismiss callback to the Alert registry component, replacing the external DismissibleAlert wrapper pattern used in notification-examples
  • Dismiss button renders absolutely positioned with pr-10 padding, internal visibility state, aria-label="Dismiss", and stopPropagation to avoid bubbling to parent click handlers
  • Component marked "use client" since useState is now used for visibility
  • Updates the alert docs page with a dismissible code example and new props table entries
  • Notification-examples simplified — removed the ~27-line DismissibleAlert wrapper in favor of the built-in prop

🤖 Generated with Claude Code

Adds first-class dismiss support to the Alert registry component with
a `dismissible` boolean prop, `onDismiss` callback, internal visibility
state, and automatic right padding for the close button. Replaces the
external DismissibleAlert wrapper in notification-examples with the
built-in prop. Updates docs with usage example and props table entries.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@creilly11235 creilly11235 requested a review from a team as a code owner March 26, 2026 23:32
@creilly11235 creilly11235 requested review from angeloaltamiranom and ruudandriessen and removed request for a team March 26, 2026 23:32
@github-actions
Copy link

github-actions bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Mar 26, 2026, 04:36:34 PM
apollo-landing 🟢 Ready Preview, Logs Mar 26, 2026, 04:34:00 PM
apollo-ui-react 🟢 Ready Preview, Logs Mar 26, 2026, 04:35:33 PM
apollo-vertex 🟢 Ready Preview, Logs Mar 26, 2026, 04:35:01 PM
apollo-wind 🟢 Ready Preview, Logs Mar 26, 2026, 04:34:06 PM

@KokoMilev KokoMilev enabled auto-merge (rebase) March 26, 2026 23:33
@github-actions
Copy link

Dependency License Review

  • 1923 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 3 package(s) excluded (see details below)
License distribution
License Packages
MIT 1688
ISC 89
Apache-2.0 56
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 5
MIT OR Apache-2.0 3
MIT-0 3
CC0-1.0 3
LGPL-3.0-or-later 2
(MIT OR Apache-2.0) 2
Unlicense 2
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@img/sharp-libvips-linuxmusl-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

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