Repository navigation
Collapsible error message - #1771
Merged
Merged
Conversation
cocomarine
temporarily deployed
to
previews/1771/merge
November 20, 2026 10:25 — with
GitHub Actions
Inactive
cocomarine
temporarily deployed
to
previews/1771/merge
November 20, 2026 11:17 — with
GitHub Actions
Inactive
Announce new errors politely without moving focus off the Run button, and move focus to the AI hint result so it isn't lost when the button that had focus is removed.
cocomarine
temporarily deployed
to
previews/1771/merge
November 20, 2026 12:29 — with
GitHub Actions
Inactive
cocomarine
temporarily deployed
to
previews/1771/merge
November 20, 2026 12:58 — with
GitHub Actions
Inactive
cocomarine
temporarily deployed
to
previews/1771/merge
November 20, 2026 15:17 — with
GitHub Actions
Inactive
cocomarine
marked this pull request as ready for review
November 20, 2026 15:22
cocomarine
marked this pull request as draft
November 20, 2026 15:28
cocomarine
marked this pull request as ready for review
November 20, 2026 15:28
Contributor
Author
|
@macroscope-app review |
Contributor
|
@macroscope-app wake up and review |
Contributor
|
Manual reviews triggered for commit All prior checks · these links stay valid even if you push more commits. |
Contributor
|
Review started; results will appear in the PR checks. |
Contributor
ApprovabilityVerdict: Would Approve Macroscope's review found this PR approvable — Runtime errors become collapsible while remaining expanded by default, with updated styling and accessible announcements and hint focus. The changes are limited to presentation and interaction, retaining existing sanitization and AI request controls. Needs human approval because:
No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
cocomarine
temporarily deployed
to
previews/1771/merge
November 23, 2026 09:57 — with
GitHub Actions
Inactive
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/2019
Also closes https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/2013
What's changed
Collapsible error message
<details>/<summary>disclosure, open by default.<details>/<summary>, it was only possible with::details-contentselector which was introduced in the last couple of years:position: stickywith overall scrollbarStyling and copy fixes
cancel_FILLandchevron_downicons to match the design.Accessibility
Error message announcement
role="status"region that announces "Error running your code" when an error appears.error ? … : nullcheck.AI hint focus
tabIndex={-1}, so screen readers read it out.aria-live="polite"from the AiErrorMessage wrapper as moving focus already announces the result.Keyboard and screen reader behaviour
<details>/<summary>, so screen readers announce its expanded/collapsed state without extra ARIA.Screen recordings
Screen.Recording.2026-11-20.at.15.19.37.mov
Screen.Recording.2026-11-20.at.15.11.22.mov