Use the admin theme's form field description styles

Created on 13 April 2023, about 1 year ago
Updated 14 April 2023, about 1 year ago

Problem/Motivation

This module's primary usage is on fieldable entity edit forms, which primarily exist in the Drupal admin UI and is intended to improve the admin experience for non-power users who depend on helper text to indicate best practices while they're working in context.

On summary text fields the font size doesn't match the description text for the summary field.

This contributes to an inconsistent look & feel which cheapens the admin experience.

Steps to reproduce

In this example, we're using text_sumary_options with a configuration to always show the summary field from the body:

Proposed resolution

Detect (or expose) the classname to use from the admin theme to style the counter text like form field description text.

In this case the class form-item__description fixes the style.

Remaining tasks

  • βœ… Get maintainer approval for the proposed resolution
  • ❌ Implement resolution
  • ❌ Write test coverage (contact a maintainer if you need help)
  • ❌ Maintainer review via the UI
  • ❌ Maintainer Code Review #1
  • ❌ Maintainer code review #2
  • ❌ Merge into dev branch, with credit to author and participants

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.1

Component

User interface

Created by

πŸ‡ͺπŸ‡¨Ecuador jwilson3

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

Comments & Activities

  • Issue created by @jwilson3
  • πŸ‡ΊπŸ‡ΈUnited States cedewey Denver, CO

    Thanks James for requesting this. I agree that doing so would improve the user experience. We'll discuss as maintainers the best way to implement this, but encourage anyone from the broader community to share their ideas (and even patches!) on this issue.

Production build 0.69.0 2024