8000 a11y: allow switching back-and-forth from the style panel by mimecuvalo · Pull Request #6286 · tldraw/tldraw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

a11y: allow switching back-and-forth from the style panel #6286

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 3 commits into from
Jun 20, 2025

Conversation

mimecuvalo
Copy link
Member

When using the Cmd+Enter shortcut, you can then adjust styles in the style panel.
However, the issue is that it's very tricky to get back to the shape you were manipulating. Hitting Escape takes you back to an unfocused canvas at the moment.
This change makes it so that you can hit Escape and focus the container again properly.

Change type

  • bugfix
  • improvement
  • feature
  • api
  • other

Release notes

  • a11y: allow switching back to the shape when doing adjusting styles.

@mimecuvalo mimecuvalo requested a review from MitjaBezensek June 19, 2025 12:31
Copy link
vercel bot commented Jun 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
analytics ✅ Ready (Inspect) Visit Preview Jun 20, 2025 6:48am
examples ✅ Ready (Inspect) Visit Preview Jun 20, 2025 6:48am
1 Skipped Deployment
Name Status Preview Updated (UTC)
tldraw-docs ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2025 6:48am

@huppy-bot huppy-bot bot added the improvement Product improvement label Jun 19, 2025
Copy link
Contributor
@MitjaBezensek MitjaBezensek left a comment

Choose a reason for hiding this comment

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

Nice 👍

Noticed one thing:

  • when I press ⌘ + Enter the first time I don't get the focus ring on the first color
  • if I then press escape and then ⌘ + Enter again I do get the focus ring

It's like that in production as well, so not related to this PR, but just wanted to share it.

CleanShot.2025-06-19.at.15.23.35.mp4

@steveruizok
Copy link
Collaborator
steveruizok commented Jun 20, 2025

Adding end to end tests! I noticed / fixed one issue which is that pressing Cmd+Enter to complete editing rich text (in geo shapes) would not re-focus the canvas.

@steveruizok steveruizok added this pull request to the merge queue Jun 20, 2025
Merged via the queue into main with commit 421abbf Jun 20, 2025
15 checks passed
@steveruizok steveruizok deleted the mime/a11y-ctx-ctx branch June 20, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Product improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0