Skip to content

[Screen reader] Remove aria for field_dropdown image element #9461

@microbit-robert

Description

@microbit-robert

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

In #9384, role and aria-label were added to the image element (if applicable) for field_dropdown. This causes the dropdown to be read as 'label, image / graphic' rather than providing list-box information and using the aria-label of the parent g element. I think these attributes should probably be removed so the more informative aria information is used.

Reproduction steps

Priority

No response

Stack trace

Screenshots

MakeCode examples with VoiceOver below.

If the image has a role and aria-label:
Image

If the image does not have a role and aria-label:
Image

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugDescribes why the code or behaviour is wrongissue: triageIssues awaiting triage by a Blockly team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions