Almanac.httparchive.org: Home page text contrast issue on mobile when zoomed

Created on 11 Nov 2019  Â·  8Comments  Â·  Source: HTTPArchive/almanac.httparchive.org

Got this UX issue in a DM:

image

The user is on a mobile device with the page zoomed in.

cc #303

bug development

All 8 comments

cc https://github.com/HTTPArchive/almanac.httparchive.org/issues/413#issuecomment-552175467 as well

Curious about how to reproduce the above zoomed in behavior.

Yeah I wasn't able to reproduce this in Dev Tools.

It seems the OS-level magnification settings need to be configured to 160% to trigger this bug.

image

In case it helps, I did try text scaling on iOS and wasn't able to reproduce this behavior, the above screenshot looks like is taken on an Android phone.

Either way, IMO this issue is due to the fact that the main background image intro-background-fit.png is set on the body and not on the HTML element that wraps the above text and button, e.g. <section class="intro-container">. Related to #485

Yeah, I think one of the reasons for doing it this way is because it also needs to appear behind the <header>.

They are definitely related, but even if it was set on the intro-container it would still cut off the text, wouldn't it? Because the header image is set to a fixed background-size.

@rviscomi yes, technically the current header content and intro-container should be wrapped together in HTML to apply that background somehow, therefore to avoid zooming issues.

@mikegeyser those ‘background-size’ hardcoded px unit values are indeed part of the issue.

Will try to work on a solution tomorrow (I’m on EET timezone) and keep you updated.

Related #512

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rviscomi picture rviscomi  Â·  5Comments

bazzadp picture bazzadp  Â·  4Comments

rviscomi picture rviscomi  Â·  5Comments

rviscomi picture rviscomi  Â·  3Comments

bazzadp picture bazzadp  Â·  4Comments