Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
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:
Comments
Comment #4
brianperryMerged and released as 4.3.0: https://www.npmjs.com/package/@gdwc/components/v/4.3.0