Add useful classes and visually indicate content moderation status on overview form if available

Created on 3 December 2021, about 3 years ago
Updated 16 December 2024, 5 days ago

Problem/Motivation

It would be nice if themes could provide unique styling (colors, etc.) based on revision status, published, and latest revision info. This patch adds some classes to assist with that, and default styles in the module to indicate node/revision properties like published, latest and current.

Identifying revision state currently can be done by visually scanning for the text. With a small amount of additional CSS we can enhance this by making entire rows visibly distinguishable by moderation state and active/current revision flag.

Steps to reproduce

View a node revisions path at node/469/revisions with Diff module enabled.

Proposed resolution

Set row classes for each moderation state and add a library for moderation state colors.

Remaining tasks

  1. [x] Prototype
  2. [x] Consider https://www.drupal.org/docs/develop/user-interface-standards/table β†’
  3. [ ] Consider UX of color usage
  4. [x]
  5. [x]
  6. [ ] Add tests

User interface changes

Colors on revisions list.

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States azinck

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024