Re: Dark mode styling for the website

Поиск
Список
Период
Сортировка
От Jonathan S. Katz
Тема Re: Dark mode styling for the website
Дата
Msg-id bbecabdc-f628-6ef1-380b-758a5ac169b5@postgresql.org
обсуждение исходный текст
Ответ на Re: Dark mode styling for the website  (Dave Page <dpage@pgadmin.org>)
Ответы Re: Dark mode styling for the website
Список pgsql-www
On 1/4/23 5:18 AM, Dave Page wrote:
> FYI, I will commit this tomorrow, unless any more issues are raised.

I do have a few issues.

> On Tue, 13 Dec 2022 at 11:17, Dave Page <dpage@pgadmin.org 
> <mailto:dpage@pgadmin.org>> wrote:
> 
> 
> 
>     On Mon, 12 Dec 2022 at 17:48, Jonathan S. Katz <jkatz@postgresql.org
>     <mailto:jkatz@postgresql.org>> wrote:
> 
>         On 11/4/22 6:52 PM, Dave Page wrote:
> 
>          > Here's a patch that implements the manual switching and
>         contrast changes.
>          >
>          > The light-mode-only issue for users without JS still needs to be
>          > resolved (if we actually care).
> 
>         Thanks for pulling this together. A few comments:
> 
>         1. Should we apply the lightened text to all font, not just the
>         top nav
>         links? I do think it is easier to read.
> 
> 
>     I'm not sure what you mean - maybe the Fontawesome icons? The
>     lightened text is defined in --a-fg-color, which does apply to all
>     links. The rest of the text is off-white.

Any of the blue text. Let's take the homepage for example, The <h2> tags 
use #2b6da3 whereas the links are now #699eca. I think we should be 
consistent.

>         2. There is an inline script that sets the toggle -- we should
>         move that
>         into a JS file. We had move all of our inline scripts in JS
>         files for
>         the CSPs.
> 
> 
>     That's intentional. If it's in a separate file you can get a "flash"
>     of colour change during page load as it can cause the code that
>     changes the theme to what was selected previously to run post-render.

I think this may cause some CSP issues, but we can "see what happens".

> 
>         3. Looking at examples of toggle buttons, the most icon common
>         pattern is:
> 
>         Light - sun
>         Dark - moon
>         (System - computer)
> 
>         Additionally, it will display the icon of the mode you are
>         currently in.
>         I'd suggest we currently follow that convention.
> 
> 
>     As David noted upthread, the issue is that the sun icon looks
>     confusingly similar to a settings cog icon, which I can certainly
>     see. I think the lightbulb is clearer, and just as obvious as to its
>     purpose. I'm fine with not following convention, when the convention
>     is sub-optimal (and note that the yum, zypp, and pgcac sites all use
>     the lightbulb now). I'm not going to fight over it though - I'd
>     rather get this committed ASAP given that the entire patch is driven
>     by user feedback.

I don't buy the argument that "because these sites in the PG family use 
it we should use it here", but I'm not going to die on the hill on it. 
So I'll +0 it.

However,  we should show the icon of the mode you're currently in (e.g. 
show the moon while you're in dark mode). That is a very common pattern 
on the web.

Thanks,

Jonathan

Вложения

В списке pgsql-www по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Dark mode styling for the website
Следующее
От: Dave Page
Дата:
Сообщение: Re: Dark mode styling for the website