Skip to content

Fix screen reader features #2694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

nickmcintyre
Copy link
Member

Fixes #2188

Changes:

I modified the injectLocalFiles() function in client/Preview/EmbedFrame.jsx to use textOutput() and gridOutput().

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

@nickmcintyre
Copy link
Member Author

@raclim @Qianqianye @davepagurek @lindapaiste what do y'all think about this approach?

Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on! I think this looks good, I just have one question (maybe for @lindapaiste?) about script tag order to try to handle as many cases as possible.

};
p5.prototype.registerMethod('afterSetup', p5.prototype.ensureAccessibleCanvas);`;
scriptElement.innerHTML = fxn;
sketchDoc.head.appendChild(scriptElement);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think there's any harm in putting this at the end of the body in case people rearrange the imports of their sketch and import p5 in the body too?

Copy link
Collaborator

@lindapaiste lindapaiste Dec 6, 2023

Choose a reason for hiding this comment

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

I think we're still not supporting importing p5 in the body 😭. We implemented a fix to support it but then we rolled it back because it caused a major issue with the editor console.

issue: #2327
reverted fix: #2426
bug caused by fix: #2518
reversion: #2547

Copy link
Contributor

Choose a reason for hiding this comment

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

got it, I think this is good to go then!

@lindapaiste lindapaiste added the Area:Accessibility Category for accessibility related features and bugs label Dec 6, 2023
@nickmcintyre
Copy link
Member Author

@lindapaiste @davepagurek just checking in. Can I help to improve this pull request? Also curious to hear your thoughts on #2702 which would be affected.

Copy link
Collaborator

@raclim raclim left a comment

Choose a reason for hiding this comment

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

Thanks for working on this and for everyone's input here! Since it's already received a review, I'm going to merge this in!

@raclim raclim merged commit afb3474 into processing:develop Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Accessibility Category for accessibility related features and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Turning on accessible canvas settings causes sketches to break
4 participants