-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#12010] Notifications box overlaps with the page menu in the instructor help page #12428
[#12010] Notifications box overlaps with the page menu in the instructor help page #12428
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.
I believe the page menu should still be at the top right and not pushed downwards using a hardcoded margin-top
. We should try to stick with the CSS properties that bootstrap has provided.
This is what I currently see at my end (locally):
Also, I have tried it on production and it seems as though this happens when the notification container is present (image below as per the one in the issue description):
However, after removing the notification by hitting on X
, it looks fine.
@jasonqiu212 @weiquu Any thoughts on this? And how Maureen can reproduce it as a comment in the issue mentioned that only registered users get the notifications.
Hi, I would try another way to fix it. Just to clarify one thing. I use the admin account to announce a notification to reproduce the issue. Is this the correct way to do it? |
@techMedMau You're right! Yes we navigate to the Notifications page as an admin and add a notification from there: |
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.
Looks good! In a way, we're resizing the notification banner to follow the size of the Help for Instructors
section, that is specific to this page .../web/instructor/help
. Not sure how scalable it is in the future. Have checked other pages as an Instructor and Student, nothing odd spotted.
Let's see what other reviewers think.
To note, currently in prod, the notification banner stretches to take up the space as much as it is able to of the portion of the page that it resides in (as the below image).
And for comparison, do look at the latest image posted by Maureen.
Personally, I think this fix is not very scalable in the future, since we are customizing the behavior of the notification banner for a specific web page. Since the problem occurs with the fixed positioning of the menu, I think it would be cleaner to find a fix with the menu, rather than modifying the notification banner. One solution I tried - Have the menu underneath the notification banner and use Fix.movOutline of solution:
But, there are downsides to using @domlimm What do you think about this alternative? |
This reminded me - the notification banner was originally designed to be sticky, but it was removed due to a bug on Safari 14 at the time (see #11747). The bug seems to have been fixed since then, so let's reintroduce |
Hi, Screen.Recording.2023-05-21.at.3.49.55.PM.movBesides, since @jasonqiu212 fix it in another way, do I need to do the same thing as him and do the commit? |
@techMedMau Hey Maureen, I believe it should be as how @jasonqiu212 has shown it! Thanks for making the changes! |
For your reference @techMedMau, here's what I did in my attempts:
Hope it helps! |
Sorry for asking question about testing. |
Hi @techMedMau, the reason is that unfortunately the E2E tests are unstable, and through no fault of yours. The instance you described is likely due to one of our maintainers re-running the test again, and thus causing it to pass when you looked at it the next day. |
Change of latest commit In Safari Screen.Recording.2023-05-22.at.10.44.25.AM.movIn Chrome Screen.Recording.2023-05-22.at.10.44.58.AM.mov |
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.
Other than the nit, LGTM! Thank you for making the changes, and your contribution Maureen! 👍🏻
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.
LGTM! Thank you for contributing (:
Fixes #12010
* add margin-top attribute to .side-nav class