Add support for dark mode user toggle in Twenty Twenty-One #6783
Labels
Changelogged
Whether the issue/PR has been added to release notes.
Enhancement
New feature or improvement of an existing one
Integration: WP Core
P2
Low priority
Milestone
Feature Description
When AMP compatibility was added to Twenty Twenty-One (#5648), the dark mode toggle button had to be hidden on AMP pages since there was no way to persist the state:
However, as of ampproject/amphtml#36958 there is now an
AMP.toggleTheme()
action which can be used to toggle dark mode via user preference. So this can be utilized to add that toggle on AMP pages.Acceptance Criteria
No response
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
The text was updated successfully, but these errors were encountered: