-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[PS-1222] Remove appBlurClick
throughout the popup and web code
#3208
[PS-1222] Remove appBlurClick
throughout the popup and web code
#3208
Conversation
`appBlurClick` leads to focus being lost/reset for assistive technology users. It should not be necessary in any case - if focus does need to move after an action, explicitly set it somewhere programmatically using `focus()` rather than relying on browser heuristics
Thank you for your contribution! We've added this to our internal Community PR board for review. |
appBlurClick
throughout the popup codeappBlurClick
throughout the popup code
Recommend thoroughly testing all functionality of the popup and web after this change. From my own testing, I have not noticed any negative behaviours. |
After merging master branch back into this, it now seems to only be touching on two straggler |
appBlurClick
throughout the popup codeappBlurClick
throughout the popup and web code
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.
Thank you @patrickhlauke
This is looking good and removes the last instances of appBlurClick
As we are no longer using it, we should also remove the directive
Is it enough to remove that file, or are there deeper ties anywhere else for it? (I'll have a little search, as sadly I'm still not really an angular guy, I just poke it from the side and see what happens) |
After removing the file with the directive, the registration of that directive needs to be removed from |
@djsmith85 okidoki, i'll give it a go and add it to this PR |
@djsmith85 done I think |
Almost..., you've removed the import for the directive but it's still used in |
fc9576d
to
a083143
Compare
serves me right for not testing...should be fixed now |
a083143
to
a598eb4
Compare
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.
No worries, it's looking good now.
@patrickhlauke Thank you for your work on this 👍
wunderbar, thank you @djsmith85 (and sorry for the flood of PRs ... was clearly on a roll/bored recently) |
No problem at all and every contribution is appreciated. Keep up the great work, seems you'll be leading community efforts again for 2022.09 😉 |
Type of change
Objective
appBlurClick
leads to focus being lost/reset for assistive technology users. It should not be necessary in any case - if focus does need to move after an action, explicitly set it somewhere programmatically usingfocus()
rather than relying on browser heuristics. in cases where the view completely changes as a result of an action, focus is reset automatically anyway.this is a follow-up to similar previous PRs (both in the browser extension and desktop app) #2662 / #2654
Code changes
appBlurClick
throughout the entirety of the codebase (too many files to list explicitly here)appBlurClick
is now not used anywhere in the code base)Screenshots
No discernible change in UI, nor - from my testing - in behaviour.
Before you submit