WordPress/wp-includes/widgets
Andrea Fercia adc7f9fe54 Accessibility: Improve the image and gallery widgets preview accessibility.
In an authoring context, the image `alt` attribute purpose is different from the one for the front end. For example, screen reader users need to know what the selected image is, even when the original `alt` value is empty.

This change introduces a new pattern for the `alt` text in an authoring context:
- uses the `alt` text if not empty
- when there's no `alt` text, informs users the image has no alternative text and provides a reference to the image filename

Also, makes the gallery media widget preview an unordered list to make screen readers announce the number of images automatically.

Fixes #43137.

Built from https://develop.svn.wordpress.org/trunk@44767


git-svn-id: http://core.svn.wordpress.org/trunk@44599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-02-23 18:32:53 +00:00
..
class-wp-nav-menu-widget.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-widget-archives.php Widgets: Remove unnecessary `sanitize_text_field()` calls in core widget `::form()` methods. 2019-01-15 00:43:49 +00:00
class-wp-widget-calendar.php Widgets: Remove unnecessary `sanitize_text_field()` calls in core widget `::form()` methods. 2019-01-15 00:43:49 +00:00
class-wp-widget-categories.php Widgets: Remove unnecessary `sanitize_text_field()` calls in core widget `::form()` methods. 2019-01-15 00:43:49 +00:00
class-wp-widget-custom-html.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-links.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-media-audio.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-media-gallery.php Accessibility: Improve the image and gallery widgets preview accessibility. 2019-02-23 18:32:53 +00:00
class-wp-widget-media-image.php Accessibility: Improve the image and gallery widgets preview accessibility. 2019-02-23 18:32:53 +00:00
class-wp-widget-media-video.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-media.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-meta.php Widgets: Remove unnecessary `sanitize_text_field()` calls in core widget `::form()` methods. 2019-01-15 00:43:49 +00:00
class-wp-widget-pages.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-recent-comments.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-recent-posts.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-rss.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-widget-search.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-widget-tag-cloud.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-widget-text.php Widgets: Don't log invalid HTML in the Text Widget. 2019-01-14 05:05:48 +00:00