Skip to content
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

fix: the focus in the sketchbook widget #1978

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Conversation

kittaakos
Copy link
Contributor

Motivation

As mentioned in #1720, the focus border looks odd when activating the Sketchbook widget. This PR fixes it.

Before the fix (with 2.0.4):

sketchbook_focus_204.mp4

After the fix:

sketchbook_focus_fix.mp4

Change description

Other information

Ref: #1720

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Mar 24, 2023
@kittaakos kittaakos self-assigned this Mar 24, 2023
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

It seems to have a harmful effect on accessibility.

Here you can see the IDE used with the popular NVDA screen reader (with the highlighting feature enabled to make it easy to see the reader focus in the screencast).

When using the IDE build from main, the sketchbook view is automatically focused for easily keyboard navigation:

skethchbook-view-focus-before

It no longer takes focus when I use the build from this PR:

sketchbook-view-focus-after

Ref: #1720

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@kittaakos
Copy link
Contributor Author

automatically focused for easily keyboard navigation:

Great review. I pushed a patch. Now, the focus should be on the button. If IDE2 prefers to stick to the 2.0.4 behavior, I am OK with it, let's close this PR, and we can fix the styling issue differently.

focus_on_button.mp4

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

Everything is working as expected now.

Thank Akos!

@kittaakos kittaakos merged commit eb1f247 into main Mar 31, 2023
@kittaakos kittaakos deleted the fix-sketchbook-widget-focus branch March 31, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants