Problem/Motivation
When a form validation is displayed it has a "prohibition" icon to the left of the validation error text.
Claro:
Default Admin:

Olivero:

The UX team commented in #2848507-212: Indicate that grouping elements have child element errors for ux and a11y (emphasis mine):
The association one has looking at a prohibition sign is not necessarily that of an error. Aside that, it also has to be noted that
/admin/reports/statusis using a different kind of icon for the error state - the iconography should be consistent across the entire admin UI, otherwise it creates ambiguity and increases the cognitive load.
@mherchel expressed a similar thought.
Steps to reproduce
1. Set Default Admin as the administration theme.
2. Go to `/admin/config/system/site-information`.
3. Clear the required `Site name` field.
4. Submit the form.
5. Observe the icon in the form validation error message.
6. Go to `/admin/reports/status` and compare the error iconography used there.
Observed result
The form validation error uses a prohibition-sign icon, which can be confused with a blocked or unavailable action rather than an error.
Expected result
Error-state icons should clearly communicate errors and be consistent with error iconography elsewhere in the admin UI.
Proposed resolution
Per @andrewmacpherson, they must all have distinct shapes.
UX team's suggestion:
The easiest fix for the error state, instead of using the prohibition sign is to simply use the "x" icon used on the status reports page for error admin messages and errors on parent elements as well.
That may work great for Claro.
For Default Admin, though:
- We can't simply switch to the icon on the status report, because it already uses the same prohibition sign on that page:

- The error summary block also has an "X" close button on the right. It seems that an "X" icon on the left would cause confusion in this case.
Also, this issue originally created with this concern:
An X icon usually denotes being able to click something to get rid of it.
Some suggestions
- For the error icon, use a red circle containing an exclamation point:

- Or, use a red octagon containing an exclamation point, and change Default Admin's warning icon to a triangle containing an exclamation point.
Remaining tasks
- UX review
- Decide on icon scheme(s).
- Implement the changes.
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | 2859914-21-default-admin-status-report-icons.png | 43.81 KB | kentr |
| #21 | 2859914-21-exclamation-point-in-circle-x2.png | 41.43 KB | kentr |
| #20 | 2859914-20-red-circle-containing-white-exclamation-point.png | 5.53 KB | kentr |
| #20 | 2859914-20-olivero-top-error-block.png | 50.98 KB | kentr |
Comments
Comment #2
cilefen commentedComment #3
andrewmacpherson commentedWe already use an exclamation mark for another message level.
These icons are not limited to form validation, or even to message boxes. They are also used by the Status Report, Available Updates, and Recent Log Messages pages.
If we make any changes, we should consider the entire set. For accessibility, they must all have distinct shapes.
Comment #4
CatsFromStonehenge commentedGood idea about looking at the entire set Andrew. It almost needs a working group to bash on through with that. Cheers, Mike.
Comment #5
sarmiliboyz commentedComment #18
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #20
kentr commentedThis issue came up in the UX meeting in the discussion of #2848507: Indicate that grouping elements have child element errors for ux and a11y, and they underscored the need for consistency as well as a better "error" icon for that issue.
If I understand correctly the general concept is still relevant, but the details have changed.
Invalid form fields don't have any icon next to them.
In Default Admin, Claro and Olivero, the error blocks at the top of the page use a cross out icon.
The status page still uses a red circle with a white "X" in Claro. In Default Admin, it uses the cross out icon.
Suggestion for a new error icon
Red circle containing an exclamation mark. It's distinguished from a warning icon by the shape and color.
Here's a very rough example modified from an existing icon in core. IMO outline icons would be better for some uses.
Comment #21
kentr commentedGoing out on a limb and reopening. The UX team commented in #2848507-212: Indicate that grouping elements have child element errors for ux and a11y (emphasis mine):
But, the problem is that the prohibition sign in the error summary block at the top of the page is preexisting. I'm not sure that we can decide to change it in #2848507: Indicate that grouping elements have child element errors for ux and a11y.
Also, for Default Admin, we can't just switch to the icon used on the status report page. As noted in #20 Default Admin uses the prohibition / cross out icon on that page.
Screenshot:
This looks like the proper issue for sorting all of that out.
Suggested exclamation point inside a circle again, solid and outline versions, in Claro's input error red color (hex color
#dc2323):SVG code for the outline version:
I think that SVG code is public domain. It's a modified version of https://publicdomainvectors.org/en/free-clipart/Small-warning-icon/59595..., and the site says:
Comment #22
kentr commentedComment #23
mgiffordComment #24
mgifford