Skip to content

Conversation

@microbit-robert
Copy link
Collaborator

@microbit-robert microbit-robert commented Jan 23, 2025

We intend to merge this into a user testing branch only. The longer term plan is to move these fields over from extending Blockly's dropdown field to extending Blockly's grid field after recent improvements to the keyboard navigation for that field.

We are still waiting for the grid field to be more open to the types of items it can take, see RaspberryPiFoundation/blockly-samples#2482.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 23, 2025

Deploying review-pxt with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3a046e7
Status:⚡️  Build in progress...

View logs

@microbit-robert microbit-robert changed the title [DRAFT - DO NOT MERGE] First pass at a keyboard accessible imagedropdown field [DRAFT - DO NOT MERGE] Keyboard accessibility for the imagedropdown and images fields Feb 20, 2025
button.setAttribute('aria-selected', 'true');
this.activeDescendantIndex = i;
contentDiv.setAttribute('aria-activedescendant', button.id);
button.setAttribute('class', `blocklyDropDownButton ${e ? "blocklyDropDownButtonHover" : "blocklyDropDownButtonFocus"}`);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is setting a keyboard focus indicator on the currently selected icon when the dropdown is opened by anything other than a mouse event. Ideally, we'd only do this when we knew it was a keyboard event. The same code is in the field_images.ts file.

@cloudflare-workers-and-pages
Copy link

Deploying review-pxt with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3a046e7
Status: ✅  Deploy successful!
Preview URL: https://ec3f6a5b.review-pxt.pages.dev
Branch Preview URL: https://image-dropdown.review-pxt.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

Deploying review-pxt with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3a046e7
Status:⚡️  Build in progress...

View logs

@cloudflare-workers-and-pages
Copy link

Deploying review-pxt with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3a046e7
Status:🚫  Build failed.

View logs

@microbit-matt-hillsdon microbit-matt-hillsdon changed the base branch from blockly-keyboard-experiment to march-ut February 21, 2025 11:47
@microbit-matt-hillsdon microbit-matt-hillsdon changed the title [DRAFT - DO NOT MERGE] Keyboard accessibility for the imagedropdown and images fields (User testing only) Keyboard accessibility for the imagedropdown and images fields Feb 21, 2025
@microbit-matt-hillsdon microbit-matt-hillsdon marked this pull request as ready for review February 21, 2025 11:47
@cloudflare-workers-and-pages
Copy link

Deploying review-pxt with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7781286
Status:⚡️  Build in progress...

View logs

@microbit-matt-hillsdon microbit-matt-hillsdon merged commit 613117b into march-ut Feb 21, 2025
2 of 3 checks passed
@microbit-matt-hillsdon
Copy link
Owner

Not deleting the branch as we may resurrect this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants