Use a Drupal.theme JavaScript method to build the 'View password' toggle

Created on 13 June 2024, 15 days ago

Problem/Motivation

Drupal.behaviors.pwd currently hardcodes the View password toggle element markup. If themes want to override the markup for this element, it needs to override the complete Drupal.behaviors.pwd method.

Proposed resolution

Implement a Drupal.theme function that themes can use to override the View password toggle element markup.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

The View password toggle element is now generated through Drupal.theme.viewPasswordToggle.

πŸ“Œ Task
Status

Active

Version

6.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands idebr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024