-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
#663 notifications - layout only #934
Conversation
d517868
to
3d8db02
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.
I looked at Figma and I believe I answered everything. Let me know if I missed something!
I suggest leaving it as it is (as a fallback) but having the ESC key closing the popup as well.
|
|
@@ -110,7 +110,8 @@ export default { | |||
this.content = null | |||
this.contentProps = {} | |||
// Refocus on button that open the modal | |||
this.lastFocus.focus() | |||
// TODO/BUG It might not exist... (e.g. profile card was closed). What's the best approach then? |
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.
The focus should be on the button that open the modal. In case of modal opening a modal, meaning that the last focus element is not present, the best approach I guess is to focus on the button that open the first modal. We can do that by recording the previous focused element if the last one doesn't exist. Or a simpler solution is to go back to the first focusable element in the page
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.
Here the trick is the profile|notifications cards. For example, clicking "Remove Member" in the profile card, it opens the modal and closes the card. This means that this.lastFocus
does not exist anymore. When we close the modal, it will go back to the top of the page because of that. But it should go back to the respective user in the members' list.
I didn't find any clean way to fix this... but I'll keep in the back of my head
@sandrina-p you're right! My bad, I forgot a lot of things changed since I wrote that list! Definitely needs to be reviewed |
Okay, @mmbotelho. Later in the road, maybe after #916 and #918 are merged, we can discuss this again. ATM we are already stretching our "multi-tasking work" with too many tasks at the same time. |
01b3318
to
10bd9ee
Compare
I agree @sandrina-p ! |
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.
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.
Found the fix to the alignment issue above. Otherwise, looks good!
10bd9ee
to
a2f23b5
Compare
a2f23b5
to
1f7a6fd
Compare
Starting #663
What's done:
Notes:
Bugs found (to be fixed in other PR):