Description
The mw.popup notification is not positioned correctly in new vector:
top of page | further down page (with sticky header) |
---|---|
Design
The positioning should be:
top of page | further down page (with sticky header) |
---|---|
Esanders | |
Aug 13 2020, 9:41 AM |
F34871193: Screen Shot 2021-12-09 at 1.22.41 PM.png | |
Dec 9 2021, 6:24 PM |
F34871192: Screen Shot 2021-12-09 at 1.22.24 PM.png | |
Dec 9 2021, 6:24 PM |
F34856125: 2021-12-07 14-47-37.2021-12-07 14_48_45.gif | |
Dec 7 2021, 7:53 PM |
F34855402: 2021-12-07 11-03-22.2021-12-07 11_05_33.gif | |
Dec 7 2021, 4:07 PM |
F34748822: Screen Shot 2021-11-15 at 11.20.28 AM.png | |
Nov 15 2021, 4:25 PM |
F34748820: Screen Shot 2021-11-15 at 11.19.44 AM.png | |
Nov 15 2021, 4:25 PM |
F34748824: image.png | |
Nov 15 2021, 4:25 PM |
F34748826: image.png | |
Nov 15 2021, 4:25 PM |
The mw.popup notification is not positioned correctly in new vector:
top of page | further down page (with sticky header) |
---|---|
The positioning should be:
top of page | further down page (with sticky header) |
---|---|
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Align `mw.notify()` alerts to avoid overlapping sticky header | mediawiki/skins/Vector | master | +29 -8 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | ovasileva | T283505 [EPIC] Fixed "sticky" site header | |||
Resolved | • alexhollender_WMF | T292304 [Goal] Deploy sticky header to pilot wikis | |||
Open | ovasileva | T283803 [EPIC] Desktop improvement visual refinement/cohesion, and cleanup | |||
Resolved | ovasileva | T260338 Sticky header: Notification popup (mw.notify) position incorrectly in Vector 2 |
The screenshots above are out of date since T260432, but it is still positioned incorrectly.
cc @alexhollender looks like this one slipped through our prioritization net as it didn't have the Vector tag.
Where should notifications appear on new vector?
I think we should re-evaluate this further along in the project, but for now let's just do top-right corner:
@alexhollender - top right corner where the text ends or top right of the screen (in which case, I think that's the current behavior?)
it seems that currently it's ~13px from the left/right-edge and ~100px from the top. I think it should just be 13px from the right/left, and 13px from the top.
@Esanders can you clarify what your expectation is here:
The watchlist item in the user menu is hidden behind the pop-up despite you opened the user menu later:
It sounds like you're suggesting that the z-index of the popup and the menu should be dependent on which appeared first on the screen.
Change 744706 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):
[mediawiki/skins/Vector@master] Align `mw.notify()` alerts to avoid overlapping sticky header
Test wiki created on Patch demo by JDrewniak (WMF) using patch(es) linked to this task:
@alexhollender I've repositioned the notification badge so that it doesn't interfere with the sticky header or the user menu.
With the sticky header, I was able to move it down depending on whether the header was visible or not.
With the user menu, I wasn't able to conditionally move the notification badge, so I just moved it to the right.
Is this an acceptable solution?
This change is up on patchdemo:
https://patchdemo.wmflabs.org/wikis/c01fbcb948/w/index.php?title=Paris&useskinversion=2&vectorstickyheader=1
(helps to login to see the watch star).
as discussed on slack, I don't think we should shift it to the left because:
@alexhollender good point, i can see how moving the notification to the left looks weird.
I like @Jdlrobson 's idea of placing the notifications at the bottom of the page, however I think that may be more work than anticipated, specifically in the scenario when the notifications are stacked one on top of the other. Then the stack would have to start from the bottom and grow upwards.
Anyway for now I left it in the corner, moving down when the sticky header is open:
Change 744706 merged by jenkins-bot:
[mediawiki/skins/Vector@master] Align `mw.notify()` alerts to avoid overlapping sticky header
@Jdlrobson how can I trigger a notification from the sticky header? the watchstar isn't there for me
Test wiki on Patch demo by JDrewniak (WMF) using patch(es) linked to this task was deleted: