Skip to content

remove invisible cookie modal backdrop on xm.com - #2888

Open
petport wants to merge 2 commits into
brave:masterfrom
petport:fix/xm-com-cookie-overlay
Open

remove invisible cookie modal backdrop on xm.com#2888
petport wants to merge 2 commits into
brave:masterfrom
petport:fix/xm-com-cookie-overlay

Conversation

@petport

@petport petport commented May 16, 2026

Copy link
Copy Markdown

Fixed a WebCompat issue on xm.com where Brave's cookie-blocking component successfully hides the visual aspect of the cookie consent modal, but leaves the underlying backdrop wrapper (.cdk-overlay-container) active in the DOM. This invisible container blankets the viewport and traps mouse events, preventing users from clicking "Start Trading" or interacting with the page in general.

Steps to Reproduce (STR)

  1. Clear all cookies/site data for xm.com.
  2. Enable Brave Shields and load xm.com .
  3. Attempt to click "Start Trading" or the hamburger menu.
  4. Result: Click events are swallowed by the invisible overlay container.

Fix
Added a procedural filter targeting .cdk-overlay-container only when it contains xm-cookie-modal-main to clear the un-clickable layout layer without interfering with other potential system modals.

@petport

petport commented May 30, 2026

Copy link
Copy Markdown
Author

Hello brave team! Any comments in this PR? If there are any issues, I would love to discuss more optimal solutions.
Thanks!

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.

1 participant