Skip to content

Math block: Syntax error notifications not accessible. #73445

@joedolson

Description

@joedolson

Description

If a user enters invalid Latex notations, an error is shown visibly. This error is not explicitly connected to the textarea and is not announced to screen readers.

Step-by-step reproduction instructions

  1. Enable screen reader.
  2. Add math block.
  3. Type x&

You should see a visual warning. It will not be spoken and the user will not have any equivalent feedback.

Screenshots, screen recording, code snippet

Image

Environment info

  • WP 6.9-RC2-61266, Gutenberg 22.1.0
  • Chrome/NVDA

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Math[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

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions