Nodejs.dev: Side Navigation font colour inconsistent

Created on 20 Feb 2019  路  11Comments  路  Source: nodejs/nodejs.dev

Can someone please crosscheck on my mobile "Getting Started" seems white.
image

But on my Macbook everything seems to be OK. o_O

image

bug good first issue help wanted

Most helpful comment

@lidoravitan doesn't look like it! Take it away.

I have a hunch its a bug in how we calculate the --magic-hero-number css variable on mobile screens:
https://github.com/nodejs/nodejs.dev/blob/5611bb6d1e6f09765efa18b84bcfc4c1d1d89fab/src/components/layout.tsx#L28

It positions a fixed background gradient that is clipped to the text path so the copy changes from black to white at the header break:
https://github.com/nodejs/nodejs.dev/blob/5611bb6d1e6f09765efa18b84bcfc4c1d1d89fab/src/components/layout.css#L246

It was coded quickly in time for the .dev launch, so there are probably many improvements to be made in this implementation 馃檪

All 11 comments

I've noticed this as well but on my 13" Macbook. Looks like this:

skarmavbild 2019-02-20 kl 17 57 50

Seems like layout.css --> .side-nav__title --> -webkit-text-fill-color: transparent; property is not working in some of the mobiles ( including mine ) But I didn't find an alternate to -webkit-text-fill-color. Only alternative I found is to give a proper fallback color. So as a solution to this issue, I modified the fallback color from color: white to color: #a0a097

This seems related to the background-position property somehow 馃 (.side-nav__title)

@LaRuaNa Is this bug taken?

@lidoravitan doesn't look like it! Take it away.

I have a hunch its a bug in how we calculate the --magic-hero-number css variable on mobile screens:
https://github.com/nodejs/nodejs.dev/blob/5611bb6d1e6f09765efa18b84bcfc4c1d1d89fab/src/components/layout.tsx#L28

It positions a fixed background gradient that is clipped to the text path so the copy changes from black to white at the header break:
https://github.com/nodejs/nodejs.dev/blob/5611bb6d1e6f09765efa18b84bcfc4c1d1d89fab/src/components/layout.css#L246

It was coded quickly in time for the .dev launch, so there are probably many improvements to be made in this implementation 馃檪

@amiller-gh cool! thanks. I will check it out as soon as possible. 馃挌

@ollelauribostrom did you fix this issue?

@lidoravitan This issue might be fixed by #168. It will probably require some tweaking, but at least I'm not seeing this on my machine anymore 馃檪

@lidoravitan @ollelauribostrom I can still reproduce that if someone wanna look into feel free :]

I'm also still seeing it in my 15.6" Laptop.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benhalverson picture benhalverson  路  3Comments

mhdawson picture mhdawson  路  4Comments

giankotarola picture giankotarola  路  4Comments

BeniCheni picture BeniCheni  路  4Comments

lidoravitan picture lidoravitan  路  4Comments