[wp-trac] [WordPress Trac] #50442: Add prefixes to all admin notices (Warning, Error, Success, Info)

WordPress Trac noreply at wordpress.org
Tue May 21 15:15:15 UTC 2024


#50442: Add prefixes to all admin notices (Warning, Error, Success, Info)
-------------------------------------+-------------------------------------
 Reporter:  kebbet                   |       Owner:  joedolson
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.7
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-design needs-      |     Focuses:  ui, accessibility, ui-
  patch early                        |  copy
-------------------------------------+-------------------------------------
Changes (by joedolson):

 * keywords:  needs-design needs-patch => needs-design needs-patch early
 * milestone:  6.6 => 6.7


Comment:

 We have three options: 1) text and an icon; 2) icon with screen reader
 text or 3) icon without screen reader text.

 The current notices only use color to indicate type: info, error, or
 success.

 The goal is to make the type of notice more evident.

 Adding visible text creates a large amount of labor for plugin authors and
 for core, as some existing notices will already contain the relevant text,
 e.g. "Error: your error message".

 Adding screen reader text is less evident to authors, so it creates the
 same duplication only for screen reader users, and is less likely to be
 observed or fixed by extenders.

 So the question is whether only adding an icon is acceptable. It improves
 on the existing model, which only uses color. In theory, the text of the
 message should always be clear enough to communicate the type of message,
 in which case adding screen reader text is redundant.

 Do we consider this visual information to be supplemental, or informative?
 If it's supplemental, then we don't need screen reader text. If it's
 informative, we do.

 From the accessibility bug scrub, we agreed that the icon should be
 considered informative, for consistency. This means that along with making
 this change, we'll also need to review the text of all core notices to
 potentially rewrite and remove any existing prefixes, and also provide
 sufficient time to extenders to be able to rewrite their own messages.

 Punting to 6.7 and marking as early.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50442#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list