Media fields are not highlighted during validation errors.

Created on 25 October 2023, 7 months ago
Updated 19 February 2024, 3 months ago

Problem/Motivation

When editing a content type with a media field and the user makes an error, the message at the top of the screen shows that it has an
error but it does not highlight the field as with other fields

Steps to reproduce

Create a content type with a mandatory media field
Create a new item of content of this type but fail to add a media item.
Click on save and see that the error is reported at the top but that the field is not highlighted in a red border with red label text as other field types.

Proposed resolution

The 'error' class is added to the media field upon validation error, yet the associated styles for the 'error' class are not correctly applied. Update the CSS to fix the issue.

Remaining tasks

  • : Done
  • : Done
  • : Done
  • Review
  • Merge

User interface changes

Media fields are correctly flagged when in error.

Before patch

After patch

API changes

None.

Data model changes

None.

Release notes snippet

N/A

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Claro 

Last updated 1 day ago

Created by

🇬🇧United Kingdom Rory Downes

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024