Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banner allows critical variant to use ondismiss #5583

Merged
merged 6 commits into from
Jan 23, 2025

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
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 👍

.changeset/blue-actors-rule.md Outdated Show resolved Hide resolved
packages/react/src/Banner/Banner.features.stories.tsx Outdated Show resolved Hide resolved
@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