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

Change behavior of privacy dropdown to only change value on validation #29406

Merged
merged 5 commits into from
Feb 27, 2024

Conversation

ClearlyClaire
Copy link
Contributor

This changes the post privacy settings to only update when clicking or pressing “Enter” or “space” on an option, as opposed to changing on keyboard validation (tab/up/down/home/end when the menu is open).

This allows exploring options without mistakenly selecting them, avoids the UI changing below the menu (addition of warnings) while navigating it, and provides consistency with the language picker menu.

Additionally, I noticed that neither of these menus handled the “space” key as validating the selection, and fixed that.

Finally, I took the opportunity to split the dropdown menu component to its own file and rewrite it as a functional component (which will also allow reuse of code in a fork I maintain).

@ClearlyClaire ClearlyClaire added ui Front-end, design accessibility Screen readers and related refactoring Improving code quality labels Feb 26, 2024
@ClearlyClaire ClearlyClaire requested a review from a team February 26, 2024 12:16
@ClearlyClaire ClearlyClaire force-pushed the fixes/privacy-dropdown-behavior branch from 603c673 to fd99d09 Compare February 27, 2024 10:51
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Feb 27, 2024
Merged via the queue into main with commit 90573c3 Feb 27, 2024
50 checks passed
@ClearlyClaire ClearlyClaire deleted the fixes/privacy-dropdown-behavior branch February 27, 2024 11:46
Ember-ruby pushed a commit to Ember-ruby/mastodon-glitch that referenced this pull request Mar 19, 2024
lutoma pushed a commit to ohaisocial/mastodon that referenced this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Screen readers and related refactoring Improving code quality ui Front-end, design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants