Skip to content

Search block icon-only button has no aria-label #38647

Description

@talldan

Description

This seems to be an issue in both the front-end and editor. When using a screen reader, the button isn't properly announced when focused.

Step-by-step reproduction instructions

  1. Add a search block
  2. Use the icon button option form the toolbar
  3. Using a screenreader, focus the button

Expected: The button is announced with default text as the aria label, like 'Submit search'
Actual: It doesn't get announced properly

Environment info

  • Mac OS / Safari / Voiceover
  • Latest Gutenberg trunk

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

No one assigned

    Labels

    [Block] SearchAffects the Search Block - used to display a search field[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended

    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