Skip to content

Conversation

@dskamiotis
Copy link
Contributor

@dskamiotis dskamiotis commented Dec 22, 2025

What does this change?

Adds custom event dispatching to the StickyBottomBanner component to signal banner state to the commercial bundle:

  • banner:none - Fired when no banner is selected to display

These events are dispatched via document.dispatchEvent() and can be listened to by the commercial bundle to control when mobile sticky ads should show.

Why?

The commercial team needs to coordinate mobile sticky ad placement with reader revenue banners. Mobile sticky ads should only show when:

  • A banner has been closed (banner:close)
  • No banner is due to show (banner:none)

This prevents ads from showing up in the DOM and going against google ad policy

Related to guardian/commercial#2351 which implements the listening logic.

@github-actions
Copy link

github-actions bot commented Dec 22, 2025

@dskamiotis dskamiotis added the run_chromatic Runs chromatic when label is applied label Dec 22, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 22, 2025
@dskamiotis dskamiotis marked this pull request as ready for review January 7, 2026 12:41
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@dskamiotis dskamiotis force-pushed the ds/add-rr-banner-close-event branch from b9fb250 to e2d2fdc Compare January 7, 2026 16:18
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

@dskamiotis dskamiotis force-pushed the ds/add-rr-banner-close-event branch from e2d2fdc to 73fdc09 Compare January 8, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants