Skip to content

Accesibility: Block label and title don't consider variations #44249

Description

@t-hamano

Description

Related to #42416

When a block variation is applied, data-title and aria-label attributes of the inserted block display information about the original block.

I think that these information should be taken into account for block variations as well as other text.

Step-by-step reproduction instructions

  • Insert core/post-terms (categories) block (The Category Block is a variation of the Post Terms block.).
  • Check the data-title and aria-label attributes from the browser console.

Screenshots, screen recording, code snippet

variation

Environment info

  • WordPress Version: 6.1-alpha-54198
  • Gutenberg Version: 14.1.0

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

Metadata

Metadata

Assignees

Labels

[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] Block editor/packages/block-editor

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions