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

SwitchModelButton: make switch not focusable #713

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

danirabbit
Copy link
Member

@danirabbit danirabbit commented Mar 25, 2024

The button itself is already keyboard focusable so we don't need the switch to separately be keyboard focusable. This makes keyboard navigation faster

@danirabbit danirabbit requested a review from a team March 25, 2024 17:31
Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

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

Makes sense
However one thing I noticed it that the menuitem doesn't get highlighted when navigating via keyboard, maybe because of #707?
But since that's not related to this PR approve :)

@danirabbit
Copy link
Member Author

@leolost2605 Granite's style sheet does have focus styles for model items, but io.elementary.stylesheet doesn't, so unless you switch to the Granite stylesheet in inspector you won't notice it

@danirabbit danirabbit merged commit bde99b6 into main Mar 25, 2024
5 checks passed
@danirabbit danirabbit deleted the danirabbit/modelbutton-switchnotfocusable branch March 25, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants