Skip to content

[Screen reader] Missing aria details for shadow blocks in some cases #9456

Closed
RaspberryPiFoundation/blockly-keyboard-experimentation
#773

Description

@microbit-robert

Check for duplicates

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

Description

There is currently a check for whether a block is a simple reporter with a full block field, however, this code only checks the first field in the input. There are instances in MakeCode where it is not the first field that is the full block field. Please see the example below where the first field is just the text "melody" and the second field is the full block field.

Image

I think that at least for shadow blocks, the check needs to extend to all of the fields. This same change would also have to be applied to getFocusableElement where the same check is made.

Reproduction steps

Priority

No response

Stack trace

Screenshots

No response

Browsers

No response

Activity

  1. BenHenning commented on Nov 26, 2025

    @BenHenning
    Contributor

    I'm assuming that in this case 'melody' is a field label. We could possibly extend the definition of simple reporter (at least for the sake of screen reader & keyboard navigation, not sure about generally, but maybe that makes sense) to be a block that contains exactly one editable field rather than having exactly one field that's editable. I think that will address the problem here, but some additional considerations need to be made if it's affecting more than keyboard nav.

  2. self-assigned this
    on Nov 27, 2025
  3. moved this from Todo to In Progress in Blocklyon Nov 27, 2025
  4. BenHenning commented on Dec 2, 2025

    @BenHenning
    Contributor

    This is mostly fixed from #9484 but there's still a change needed in the plugin.

  5. BenHenning commented on Dec 4, 2025

    @BenHenning
    Contributor
  6. moved this from In Progress to Done in Blocklyon Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions