WordPress/gutenberg

"Read more" options for post excerpts do not contain accessible names

開放

#45,396 建立於 2022年10月28日

 (16 則留言) (1 個反應) (1 位負責人)JavaScript (3,893 個分叉)batch import
Good First IssueNeeds DesignNeeds Dev[Block] Post Excerpt[Block] Read More[Focus] Accessibility (a11y)[Status] In Progress[Type] Bug

倉庫指標

星標
 (9,607 顆星)
PR 合併指標
 (平均合併 12天 18小時) (30 天內合併 509 個 PR)

描述

Description

There are two options I'm aware of for adding read more with post excerpts; one as part of the post excerpt block and adding the 'Read more' block. Neither of these blocks includes any option for either visible inclusion of the post title or a screen-reader available post title. This is required by the accessibility-ready tag in the theme directory: https://make.wordpress.org/themes/handbook/review/accessibility/required/#repetitive-link-text

The block should always include relevant details to clarify the link target using one of aria-label, aria-describedby with a reference pointing to the title by ID, or .screen-reader-text. There can be a toggle to make this visible, but the text should always be present.

Step-by-step reproduction instructions

  1. Install Twenty Twenty Three
  2. Add read more text or the read more block to the home page excerpt layout.
  3. Inspect the front-end to note that the entire link text is as written, with no information to indicate which post 'read more' points to.

Screenshots, screen recording, code snippet

No response

Environment info

  • WP 6.1-RC4-54709
  • Gutenberg 14.4.0
  • Twenty Twenty Three

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

貢獻者指南