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 coop.co.uk rule that breaks site functionality and is redundant #6409

Conversation

philwolstenholme
Copy link
Contributor

This rule breaks functionality on coop.co.uk sites such as non-cookie-related modals.

footer ~ div{display:none !important} is a very heavy-handed CSS rule (hide any div element that appears in the source order after a footer element). It was breaking modal functionality across the whole site, even modals not related to cookie prompts. React modals are often added to the very end of the body element, and this means they appear after the footer. The CSS rule hid the modals, which prevented at least one *.coop.co.uk site from functioning correctly.

This does not affect the functionality of the extension as that custom rule is redundant. Since it was added Co-op have switched to using OneTrust, so this extension's existing code for handling OneTrust is enough (see screenshot).

Disclosure: I work as a developer at Co-op, but I am also a user of this extension and appreciate it. I discovered this issue while investigating why I couldn't access the website that I am the tech lead for on my personal Chrome profile, but I could access it on my work Chrome profile 😁

SCR-20230812-rrnh

This rule breaks functionality on coop.co.uk sites such as non-cookie modals. The rule is redundant anyway, as since it was added Co-op have switched to using OneTrust, so the extensions existing code for handling OneTrust is enough.
@OhMyGuus OhMyGuus merged commit b883b67 into OhMyGuus:master Dec 13, 2023
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.

None yet

2 participants