Incorrect error-message class for the details and detail vertical tabs components.

Created on 16 January 2024, 11 months ago

Problem/Motivation

We have different classes for the details component and element error messages, and there are no styles for the form-item--error-message class.

Steps to reproduce

  1. Use tabs on the node form.
  2. Set fields inside the tab as required.
  3. Create a node.
  4. Save the page without populating any fields.
  5. Observe - errors appear against the field and display bold black text.

Proposed resolution

Update the Claro theme templates

  • details.html.twig
  • details--vertical-tabs.html.twig

and use the same error message class as in the form-element.html.twig to unify HTML classes and styles.

Expected:

error messages to display in red against mandatory fields when invalid/empty data is saved when editing/creating content types

🐛 Bug report
Status

Needs work

Version

10.2

Component
Claro 

Last updated 2 days ago

Created by

🇺🇦Ukraine v.dovhaliuk

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

Comments & Activities

Production build 0.71.5 2024