[wp-trac] [WordPress Trac] #50442: Add prefixes to all admin notices (Warning, Error, Success, Info)
WordPress Trac
noreply at wordpress.org
Sun Oct 22 17:25:05 UTC 2023
#50442: Add prefixes to all admin notices (Warning, Error, Success, Info)
----------------------------+-----------------------------------------
Reporter: kebbet | Owner: joedolson
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.5
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: needs-design | Focuses: ui, accessibility, ui-copy
----------------------------+-----------------------------------------
Comment (by joedolson):
Reading through the history of this issue, as reflected in #47656, I can
see that there are a number of problems that should be taken into
consideration. Design-wise, there's some back-compat issues with handling
this outside of core, and a lot of text churn that could happen with
changing all errors. In many cases, the context of an error or warning is
fairly clear, but right now the distinction is only conveyed using color.
Adding this as text is reasonable, but this might be a case where we can
more easily handle this issue by adding an icon to indicate each state
with accessible text.
What this avoids is 1) the need to modify the text of existing notices. 2)
Fixes the color-only indicator problem, by providing cues through color,
icon, and text (for screen readers.) The gap is a lack of text indication
for sighted users who don't immediately understand the icon, but this
information is all enhancing comprehension; the color and icon should
never be critical to the message. If we have a message in a notice that
leaves ambiguity, then that message should be updated.
I suggest using `dashicons-no` for errors, `dashicons-warning`, for
warnings, `dashicons-info`, for info, and `dashicons-yes` for success.
Open to arguments against this, however.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50442#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list