Skip to content

A11y Support for CookieConsent#3987

Merged
thorsten merged 1 commit intothorsten:4.1from
d0ubIeU:A11y_CookieConsent
Feb 17, 2026
Merged

A11y Support for CookieConsent#3987
thorsten merged 1 commit intothorsten:4.1from
d0ubIeU:A11y_CookieConsent

Conversation

@d0ubIeU
Copy link
Contributor

@d0ubIeU d0ubIeU commented Feb 17, 2026

This integrates the vanilla-cookieconsent styling into the phpMyFAQ theme engine. The focus lies on a seamless visual experience across all color modes while strictly adhering to accessibility (A11y) standards.

  • Bootstrap Theme Switcher Integration: Instead of relying on the plugin's internal class toggles, the styling is now directly bound to the [data-bs-theme] selectors. This ensures that the cookie banner automatically synchronizes with the user's chosen theme (Light, Dark, or High-Contrast).

  • A11y High-Contrast Mode: Implemented a high-visibility theme using the Atkinson Hyperlegible Next font for improved readability. Enforced strict color contrast (Yellow/Black) across all modal components, including headers, footers, and interactive elements.

These changes align with WCAG 2.1 AAA requirements for contrast and font readability, significantly improving the experience for users with visual impairments.

Added layout/_cookie-custom.scss to integrate and theme the Cookie Consent UI across Bootstrap themes (light, dark, high-contrast). The file defines CSS variables, component overrides, responsive rules and accessibility/high-contrast adjustments.
@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@thorsten thorsten merged commit 6f73a96 into thorsten:4.1 Feb 17, 2026
6 of 10 checks passed
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.

2 participants