Page MenuHomePhabricator

Homepage: mobile submodule headers
Closed, ResolvedPublic

Assigned To
Authored By
SBisson
Jun 12 2019, 7:13 PM
Referenced Files
F30077150: image.png
Aug 23 2019, 1:45 PM
F30077144: Screenshot (23 Aug. 2019 15:34:08)
Aug 23 2019, 1:45 PM
F30069166: IMG_8227.PNG
Aug 23 2019, 3:17 AM
F30074538: IMG_8227.PNG
Aug 23 2019, 3:17 AM
F30069118: Screen Shot 2019-08-22 at 3.26.32 PM.png
Aug 23 2019, 3:17 AM
F30074534: IMG_8228.PNG
Aug 23 2019, 3:17 AM
F30069161: IMG_8228.PNG
Aug 23 2019, 3:17 AM
F30052288: image.png
Aug 21 2019, 12:14 PM

Description

The submodule headers of the start module don't have correct styling. The div is not inheriting the correct subset of parameters from .growthexperiments-homepage-module .growthexperiments-homepage-module-header, .growthexperiments-homepage-module h2.growthexperiments-homepage-module-header

CurrentDesired
Screenshot 2019-06-11 16.44.10.png (758×1,340 px, 123 KB)
Screenshot 2019-06-11 16.45.03.png (754×1,366 px, 117 KB)

Correct styling could be achieved with the following:

body.mw-special-Homepage .overlay-content .growthexperiments-homepage-module-mobile-overlay .growthexperiments-homepage-module-section-header {
  font-size: 1.1em;
  font-weight: bold;  
}

Event Timeline

MMiller_WMF renamed this task from The submodule headers of the start module don't have correct styling to Homepage: mobile submodule headers.Jun 12 2019, 10:25 PM
MMiller_WMF updated the task description. (Show Details)
MMiller_WMF added subscribers: kostajh, Catrope, Cntlsn and 4 others.

Declining this in favor of the new task for all UI fixes at T230014

Cntlsn triaged this task as Medium priority.Aug 12 2019, 1:57 PM
Cntlsn updated the task description. (Show Details)

Changed task description with css details about desired styling.
Moving to ready for development column.

Change 530593 had a related patch set uploaded (by Sbisson; owner: Sbisson):
[mediawiki/extensions/GrowthExperiments@master] Start: update submodules header

https://gerrit.wikimedia.org/r/530593

Change 530593 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Start: update submodules header

https://gerrit.wikimedia.org/r/530593

Etonkovidova added a subscriber: RHo.

@RHo - I see font-size: 1.3em; for .growthexperiments-homepage-module-section-header :

Screen Shot 2019-08-19 at 3.15.15 PM.png (1,526×1,024 px, 353 KB)

The spacing has been increased (see the screenshots for betalabs and testwiki). As a result, less content fits into the viewport.

betalabstestwiki
Screen Shot 2019-08-19 at 3.16.05 PM.png (755×943 px, 93 KB)
Screen Shot 2019-08-19 at 3.15.55 PM.png (721×983 px, 94 KB)

Thanks @Etonkovidova for pointing out the spacing. I think this is mainly due to the 1st "account created" step having extra top padding:

image.png (1,238×1,086 px, 242 KB)

@SBisson - can we remove the 1em top padding from the body.mw-special-Homepage .overlay-content class?

image.png (984×386 px, 130 KB)

@SBisson - can we remove the 1em top padding from the body.mw-special-Homepage .overlay-content class?

image.png (984×386 px, 130 KB)

That padding on .overlay-content applies to all modules. Removing it is especially bad for Help and Mentorship. In the patch below, I propose removing the equivalent space from the first Start submodule. It has the same effect on the Start module without side-effects on other modules.

Change 531492 had a related patch set uploaded (by Sbisson; owner: Sbisson):
[mediawiki/extensions/GrowthExperiments@master] Start: remove padding top from first submodule

https://gerrit.wikimedia.org/r/531492

Change 531492 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Start: remove padding top from first submodule

https://gerrit.wikimedia.org/r/531492

The padding is removed:

betalabstestwiki
IMG_8228.PNG (640×1,136 px, 68 KB)
IMG_8227.PNG (640×1,136 px, 68 KB)

Note:
@RHo - please review the spacing. The browser emulator even misinterprets the buttons position:

Screen Shot 2019-08-22 at 3.26.32 PM.png (467×754 px, 51 KB)

The real device does not display the bug, but the spacing is really bigger than in production:

testwikibetalabs
IMG_8227.PNG (640×1,136 px, 68 KB)
IMG_8228.PNG (640×1,136 px, 68 KB)

please review the spacing. The browser emulator even misinterprets the buttons position:

That looks a lot like T230629: Start module (overlay and server-side rendered view) layout broken in Firefox

Based on reviewing betalabs version on my device as well the spacing and header style is fixed, but the weird button rendering is also happening on my mobile Firefox browser (I've added details to T230629 linked by @kostajh).

Betalabs on Android device, Chrome browser
image.png (840×1,494 px, 188 KB)
Betalabs on Android device, Firefox browser
Screenshot (23 Aug. 2019 15:34:08) (1,080×1,920 px, 85 KB)

Moving this task to PM sign-off, but perhaps we can prioritize fixing the Firefox bug?

@Etonkovidova -- I'm confused about this. Did you notice that issue with button overlap in spacing in browsers other than mobile Firefox? Are you saying that everything looks good here except for that one browser? Or are there other issues?

@Etonkovidova -- I'm confused about this. Did you notice that issue with button overlap in spacing in browsers other than mobile Firefox? Are you saying that everything looks good here except for that one browser? Or are there other issues?

  • In my comment I mentioned that the issue with overlapping buttons is observed in the browser emulator.
  • @RHo confirmed the limited scope of the issue on a real device (FF on Android)
  • @kostajh created T230629

We need to prioritize T230629 which is currently in Incoming work on our workboard.

@Etonkovidova -- now that T230629 is finished, should we also consider this task resolved?

@Etonkovidova -- now that T230629 is finished, should we also consider this task resolved?

The correct formatting seems to be in place - checked on testwiki wmf.24.