all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sirgazil--- via Guix-patches via <guix-patches@gnu.org>
To: 74634@debbugs.gnu.org
Cc: Luis Felipe <sirgazil@zoho.com>
Subject: [bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme.
Date: Sun,  1 Dec 2024 11:19:46 -0500	[thread overview]
Message-ID: <20241201161950.19049-1-sirgazil@zoho.com> (raw)
In-Reply-To: <20241201161216.18698-1-sirgazil@zoho.com>

From: Luis Felipe <sirgazil@zoho.com>

The website's CSS doesn't adapt to user's preferred color scheme yet,
but the logo image did. This created an accessibility problem for
users who prefer a dark scheme: the whitish version of the logo was
displayed on the whitish pages of the website. This change solves that
problem.

* haunt.scm (page-layout): Always use the logo for light backgrounds.
---
 haunt.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/haunt.scm b/haunt.scm
index 23a0efa..f561fc9 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -95,11 +95,8 @@
                      (a (@ (href ,(base-url "/"))
                            (class ,(if front-page?
                                        "logo" "logo small")))
-                        (picture
-                         (source (@ (media "(prefers-color-scheme: dark)")
-                                    (srcset ,(image-url "logo-dark.svg"))))
-                         (img (@ (src ,(image-url "logo-light.svg"))
-                                 (alt "Shepherd logo")))))
+                        (img (@ (src ,(image-url "logo-light.svg"))
+                                (alt "Shepherd logo"))))
 
                      ;; Add the large-font welcoming message on the
                      ;; front page.
-- 
2.46.0





  reply	other threads:[~2024-12-01 16:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-01 16:10 [bug#74634] [PATCH shepherd website 0/5] Suggested style changes for 1.0.0 release sirgazil--- via Guix-patches via
2024-12-01 16:19 ` sirgazil--- via Guix-patches via [this message]
2024-12-01 16:19   ` [bug#74634] [PATCH shepherd website 2/5] logo: Remove jumpy effect on focus sirgazil--- via Guix-patches via
2024-12-01 16:19   ` [bug#74634] [PATCH shepherd website 3/5] logo: Use the same color of the main text sirgazil--- via Guix-patches via
2024-12-01 16:19   ` [bug#74634] [PATCH shepherd website 4/5] logo: Remove SVG margins sirgazil--- via Guix-patches via
2024-12-01 16:19   ` [bug#74634] [PATCH shepherd website 5/5] Avoid some content overflowing horizontally on narrow screens sirgazil--- via Guix-patches via
2024-12-01 16:27   ` [bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme Ludovic Courtès
2024-12-01 16:34     ` Luis Felipe via Guix-patches via
2024-12-01 16:28 ` bug#74634: [PATCH shepherd website 0/5] Suggested style changes for 1.0.0 release Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241201161950.19049-1-sirgazil@zoho.com \
    --to=guix-patches@gnu.org \
    --cc=74634@debbugs.gnu.org \
    --cc=sirgazil@zoho.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.