Now that the icon and icon button have been added, I'd like to use them inside of a dark/light theme toggle.

* On-load the OS level prefers-color-scheme preference should be honored.
* Users can toggle between light and dark mode using an icon button.
* When a mode is set, the `data-theme` attribute used by Open Props should be set on the html element. This should allow the control to hook into the Open Props light and dark themes automatically.

Issue fork gdwc-3321007

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brianperry created an issue. See original summary.

  • brianperry committed 19140da on 1.0.x
    Issue #3321007 by brianperry: gdwc-color-scheme-toggle
    
brianperry’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.