Skip to content

feat: Update zelos path object to allowlist attributes#9742

Merged
lizschwab merged 1 commit intoRaspberryPiFoundation:v13from
lizschwab:rpf-9665
Apr 21, 2026
Merged

feat: Update zelos path object to allowlist attributes#9742
lizschwab merged 1 commit intoRaspberryPiFoundation:v13from
lizschwab:rpf-9665

Conversation

@lizschwab
Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #9665

Proposed Changes

In the Zelos renderer, the updateSelected() method now creates a new element to assign to the svgPathSelected element rather than cloning the svgPath.

Reason for Changes

This allows us to create an allowlist of attributes we want to copy rather than a denylist of attributes, which was how we previously handled it. Ultimately, this allows us to avoid inadvertently copying attributes that may cause issues in the accessibility tree.

Test Coverage

I have tested these changes manually by comparing the functionality before and after these changes in Chrome. Keyboard navigation and focus control all continued to work when using the Zelos renderer in the Advanced Blockly Playground after these changes were applied.

Accessibility tree before:
Screenshot 2026-04-20 at 3 07 14 PM

Accessibility tree after:
Screenshot 2026-04-20 at 3 05 53 PM

@lizschwab lizschwab requested a review from a team as a code owner April 20, 2026 23:02
@lizschwab lizschwab requested a review from gonfunko April 20, 2026 23:02
@github-actions github-actions Bot added the PR: feature Adds a feature label Apr 20, 2026
@lizschwab lizschwab merged commit 6e3195e into RaspberryPiFoundation:v13 Apr 21, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants