Set focus on the ManageList's inputs when users navigate to them using the List's buttons #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We added buttons below the filter input to enhance app navigation and provide users with a more intuitive way to access the 'Add Items' or 'Share List' forms.
To make the user experience smoother and improve accessibility, this PR adds an optional parameter to the manage-list route. This parameter is used to programmatically set focus on the inputs when users navigate to them using any of the buttons in the List view to add an item or share a list.
Additionally, this change removes the 'selected' property from the first option of the 'Select time' input to avoid a console warning.
After applying these changes:
Type of Changes
Updates
Before
Navigation
Screen.Recording.2024-04-19.at.15.27.14.mov
Warning
After
Navigation
Screen.Recording.2024-04-19.at.15.26.31.mov
Warning
Testing Steps / QA Criteria
To test changes locally, pull the
set-focus
branch from this repo:git checkout -b set-focus
git pull origin set-focus