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 component #1533

Merged
merged 23 commits into from
Oct 24, 2022
Merged

Banner component #1533

merged 23 commits into from
Oct 24, 2022

Conversation

camertron
Copy link
Contributor

@camertron camertron commented Oct 21, 2022

Description

This PR introduces the Banner component, which will eventually form the basis for an improved Flash component. I'd like to ship this before shipping the Flash component upgrade. The idea here is that Flash is a Banner with some extra javascript for announcing the message to screen readers.

Integration

Does this change require any updates to code in production?

No, prod uses the Flash component to display banners. Flash should only be used to display announced alert and status messages, so my plan is to replace all usages of Flash with Banner in dotcom, then land the Flash upgrade and start using it for flash-specific purposes in dotcom.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@changeset-bot
Copy link

changeset-bot bot commented Oct 21, 2022

🦋 Changeset detected

Latest commit: e07c525

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

@github-actions github-actions bot added css Pull requests that update CSS code javascript Pull requests that update Javascript code ruby Pull requests that update Ruby code labels Oct 21, 2022
@camertron camertron temporarily deployed to review-pr-1533 October 21, 2022 22:19 Inactive
@camertron camertron temporarily deployed to github-pages October 21, 2022 22:23 Inactive
@camertron camertron temporarily deployed to github-pages October 21, 2022 23:28 Inactive
@camertron camertron marked this pull request as ready for review October 21, 2022 23:32
@camertron camertron requested a review from a team as a code owner October 21, 2022 23:32
@camertron camertron requested review from a team, langermank and keithamus October 21, 2022 23:32
Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

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

👍🏻

@camertron camertron merged commit 1ee5cc1 into main Oct 24, 2022
@camertron camertron deleted the banner_component branch October 24, 2022 21:07
@primer-css primer-css mentioned this pull request Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css Pull requests that update CSS code javascript Pull requests that update Javascript code ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants