Add the ability to configure the Darkmode Switcher block

Created on 29 October 2023, 8 months ago
Updated 9 November 2023, 8 months ago

Problem/Motivation

Now the settings for the Darkmode Switcher block are hardcoded into the behavior. It would be nice to provide an option to allow the user to set their preferences.

Proposed resolution

1. Add configuration form and default settings the same as in the Behavior.
2. Using drupalSettings, transfer the settings to the Darkmode Switcher block.
3. In the behavior, get these settings and use them as options to create a Darkmode object.

✨ Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

🇺🇦Ukraine Bobik

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024