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

Remove closed banner container #17495

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

toy
Copy link
Contributor

@toy toy commented Dec 18, 2024

Ticket

Noticed while developing OP#58161

What are you trying to accomplish?

Remove empty OpPrimer::FlashComponent tags which are left when Primer::Alpha::Banner are closed (removed). OpPrimer::FlashComponent tags are making their container take space and even be visible.

Screenshots

Leftovers after closing multiple banners:
image
image

What approach did you choose and why?

Mark Primer::Alpha::Banner as flash controller target, to rely on TargetDisconnect to remove empty OpPrimer::FlashComponent containers

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@toy toy changed the title Remove closed flash container Remove closed banner container Dec 18, 2024
Copy link
Member

@oliverguenther oliverguenther left a comment

Choose a reason for hiding this comment

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

Good catch! 👍

@oliverguenther oliverguenther merged commit 07f560a into dev Dec 18, 2024
11 checks passed
@oliverguenther oliverguenther deleted the remove-closed-flash-container branch December 18, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants