Add the ability to configure the Darkmode Switcher block

Created on 29 October 2023, about 1 year ago
Updated 9 November 2023, about 1 year 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 bobi-mel

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.71.5 2024