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

Additional legacy flash/banner classes; fix data-target issue #1559

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

camertron
Copy link
Contributor

@camertron camertron commented Oct 31, 2022

Description

This PR adds a few additional legacy CSS classes to banner elements so CSS and JS in dotcom continue to function. It also moves the reappear attribute from the Banner div up to the custom <x-banner> element. This is done so we don't have to attach a data-target attribute to the element, thereby avoiding a collision with the data-target attribute used in certain places in dotcom code.

Integration

Does this change require any updates to code in production?

Since we've rolled back all instances of the Banner component in dotcom, no.

Merge checklist

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2022

🦋 Changeset detected

Latest commit: d3f563f

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

@camertron camertron temporarily deployed to review-pr-1559 October 31, 2022 21:41 Inactive
@github-actions github-actions bot added javascript Pull requests that update Javascript code ruby Pull requests that update Ruby code labels Oct 31, 2022
@camertron camertron temporarily deployed to github-pages October 31, 2022 21:47 Inactive
@camertron camertron marked this pull request as ready for review October 31, 2022 22:13
@camertron camertron requested review from a team and keithamus October 31, 2022 22:13
@camertron camertron merged commit b534001 into main Nov 3, 2022
@camertron camertron deleted the flash_tweaks branch November 3, 2022 22:20
@primer-css primer-css mentioned this pull request Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants