Add ability to change textcount_status_message based on state

Created on 4 January 2024, 11 months ago

Problem/Motivation

As a designer working on a government Drupal CMS, I would like to have the character counters in the Drupal editorial interface match the USWDS character counter.

Proposed resolution

Desired logic is something like:

  • When currentLength = 0, textcount_status_message = <span class="maxlength_count">@maxlength</span> characters allowed
  • When currentLength = >0 & <=maxlength , textcount_status_message = <span class="remaining_count">@remaining_count</span> characters remaining
  • When currentLength > maxlength , textcount_status_message = <span class="overlimit_count">@overlimit_count</span> characters overlimit
  • overlimit would be = currentLength - maxlength

Remaining tasks

User interface changes

Update the widget settings to have multiple textcount_status_message

Data model changes

✨ Feature request
Status

Active

Version

2.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States davidmpickett

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

Comments & Activities

Production build 0.71.5 2024