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

Make dismiss action on Banner changeable #2454

Closed

Conversation

HDinger
Copy link
Contributor

@HDinger HDinger commented Dec 13, 2023

What are you trying to accomplish?

The Alpha::Banner component has the option to dismiss the banner via a button showing an "x". This button has an aria-label attribute with the hard coded text "Dismiss". This text is not changable. This PR aims to make the dismiss action customizable, e.g to open it for translations or different texts if the context requires it.

List the issues that this change affects.

Closes #2453

Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.
  • Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
  • High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

@HDinger HDinger requested review from a team and jonrohan December 13, 2023 08:55
Copy link

changeset-bot bot commented Dec 13, 2023

🦋 Changeset detected

Latest commit: 52905ae

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

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

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

@HDinger HDinger changed the title Make dismiss action on Banner translatable Make dismiss action on Banner changeable Dec 13, 2023
@HDinger HDinger force-pushed the fix/make-dismiss-action-translatable branch 3 times, most recently from 205290b to e87b69a Compare December 13, 2023 09:13
@HDinger HDinger force-pushed the fix/make-dismiss-action-translatable branch from e87b69a to 52905ae Compare December 13, 2023 09:20
@HDinger
Copy link
Contributor Author

HDinger commented Dec 13, 2023

Closing in favour of #2455

@HDinger HDinger closed this Dec 13, 2023
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.

Dismiss action of Alpha::Banner is not changable
1 participant