-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gallery: Add labels to img, figure and figcaption elements for access…
…ibility (#25560) * Add labels to img, figure and figcaption elements to make captions more accessible * change aria-label to aria-describedby * Update packages/block-library/src/gallery/gallery-image.js Co-authored-by: Zebulan Stanphill <zebulanstanphill@protonmail.com> * Update packages/block-library/src/gallery/gallery-image.js Co-authored-by: Zebulan Stanphill <zebulanstanphill@protonmail.com> * Replace aria-describedby with conditional aria-label. * Avoid caption repetition. * Revert "Avoid caption repetition." This reverts commit d72429a4849e42469c3fb5c33ea08a2149c70c0e. * Add deprecation. * Remove unnecessary Id. Co-authored-by: Zebulan Stanphill <zebulanstanphill@protonmail.com> Co-authored-by: tellthemachines <isabel@tellthemachines.com>
- Loading branch information
1 parent
e99430f
commit 643007e
Showing
2 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters