Skip to content

Conversation

@brphelps
Copy link
Contributor

Closes #5582

Changelog

New

Changed

Banner now supports onDismiss used when using variant critical.

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

I added a unit test and updated the example to use onDismiss.

Merge checklist

@brphelps brphelps requested a review from a team as a code owner January 21, 2025 21:37
@brphelps brphelps requested a review from TylerJDev January 21, 2025 21:37
@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2025

🦋 Changeset detected

Latest commit: 2206468

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for putting this together! Just left a couple of comments 👍

Co-authored-by: Josh Black <joshblack@github.com>
@joshblack joshblack enabled auto-merge January 23, 2025 17:18
@joshblack joshblack added this pull request to the merge queue Jan 23, 2025
Merged via the queue into primer:main with commit db6c360 Jan 23, 2025
39 of 40 checks passed
@primer primer bot mentioned this pull request Jan 23, 2025
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.

Allow critical Banner variant to use onDismiss

3 participants