-
Notifications
You must be signed in to change notification settings - Fork 0
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 / remove focus on start watching button due to inconsistency #180
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is what it is, unfortunately. I think this is the best intermediate solution for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It keeps it simple and straightforward. Let's do it!
@MelissaDTH let's submit this first and try the hook in a next PR. |
04323b6
to
8df8c30
Compare
@MelissaDTH are we ready for the PR? 😄 |
Description
Card
to make sure thebody
element is focused, was also inconsistent. If you'd then start tabbing, the focus lands on the footer, suggesting it's still on the previousCard
in theCardGrid
.key
prop on theStartWatching
button) and accept that the focus stays on the previous card when navigating from theCardGrid
.Update 17th of April:
The modifications in this PR do not alter the current behavior in the app. Submitting this PR to JW that reverts recent changes made us is not necessary. Discussed with Roy and Chris to label this PR as a draft and further explore another solution proposed by Chris, see: Slack link.
Christiaan's idea:
To also take into account:
It's important to remember to check how
Search
is affected by this: Do we support the history state of IDX (after each navigation, a state is pushed or popped). History is an array, so using.push()
adds an entry. IDX represents the ID of the item.