From 803994c96b038cdd23002ec4d4a1a72d766ceadb Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Mon, 23 Nov 2026 12:35:34 -0800 Subject: [PATCH 1/2] Pause the participant logo strip on hover and link each logo The participant logo strip keeps scrolling under the pointer and its logos aren't links, so there's no way to get from a logo to the participant's site. Hovering the strip now pauses it, and each logo links to the participant's site, underlined on hover. The links are out of the tab order. Tabbing through 23 logos with no skip link was too many stops, and keyboard focus scrolled the marquee off-track. Keyboard users reach every participant through the "Valkey participants" link to /participants/. Signed-off-by: Madelyn Olson --- sass/_community.scss | 12 +++++++++--- templates/macros/community.html | 13 +++++++------ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/sass/_community.scss b/sass/_community.scss index 7afdc92e..00d9e0cf 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -113,9 +113,11 @@ a.community-home-kicker:hover { will-change: transform; } -// Paused via the visible toggle button (see community.js). The logos -// themselves are non-interactive, so there is no focus-based pause. -.community-logo-track.is-paused { +// Paused via the visible toggle button (see community.js), or while the +// pointer is over the strip so a logo can be clicked. The logo links are out +// of the tab order, so there is no focus-based pause. +.community-logo-track.is-paused, +.community-logo-row:hover .community-logo-track { animation-play-state: paused; } @@ -146,6 +148,10 @@ a.community-home-kicker:hover { max-height: var(--logo-height, 24px); object-fit: contain; } + + &:hover img { + box-shadow: 0 2px 0 0 $community-label-blue; + } } @keyframes community-logo-marquee { diff --git a/templates/macros/community.html b/templates/macros/community.html index 01b30f17..fe72fc7a 100644 --- a/templates/macros/community.html +++ b/templates/macros/community.html @@ -25,10 +25,11 @@ {% endcomponent logo_height %} {# One full set of logos. The marquee renders it twice; the copy is hidden from - assistive tech. Logos are non-interactive: the "Valkey participants" kicker - already links to /participants/, where each logo is linked with a - description. Rendering them as links here added ~20 tab stops with no skip - link and let keyboard focus scroll the marquee off-track. #} + assistive tech. Each logo links to the participant's site for mouse users, + since hovering the strip pauses it. The links are kept out of the tab order: + ~20 tab stops with no skip link was too many, and keyboard focus scrolled + the marquee off-track. The "Valkey participants" kicker links to + /participants/, where each logo is linked with a description. #} {% component logo_set(participants, duplicate=false, loading="eager") %} From a4c795b6929425f41fbbdd7b55bd3d020dd5cc49 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Mon, 23 Nov 2026 12:54:35 -0800 Subject: [PATCH 2/2] Drop the logo strip's pause button and enlarge the hovered logo With hovering the strip pausing it, the Pause button is a second control for the same thing, so it goes, along with the script that ran it on the homepage. The logo under the pointer now grows slightly as well as being underlined. The strip gets a little vertical padding so the grown logo and its underline aren't clipped. Signed-off-by: Madelyn Olson --- sass/_community.scss | 34 ++++++++++----------------------- static/assets/js/community.js | 27 ++++---------------------- templates/index.html | 2 -- templates/macros/community.html | 11 ++++------- 4 files changed, 18 insertions(+), 56 deletions(-) diff --git a/sass/_community.scss b/sass/_community.scss index 00d9e0cf..bb20fd65 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -77,29 +77,12 @@ a.community-home-kicker:hover { margin-bottom: 1.1rem; } -// Visible pause/play control for the auto-scrolling marquee (WCAG 2.2.2: -// moving content that lasts more than 5s needs a mechanism to pause it). -.community-logo-pause { - flex: 0 0 auto; - padding: 0.4rem 1.1rem; - border: 1px solid #bfc6dd; - border-radius: 20px; - background: #fff; - color: #47506b; - font-size: 1.1rem; - font-weight: 700; - letter-spacing: 0.04em; - cursor: pointer; - - &:hover { - border-color: $community-purple-800; - color: $community-purple-800; - } -} - +// The vertical padding leaves room for a hovered logo's scale and underline, +// which overflow and the mask would otherwise clip. .community-logo-row { position: relative; overflow: hidden; + padding: 0.4rem 0; white-space: nowrap; mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%); @@ -113,10 +96,8 @@ a.community-home-kicker:hover { will-change: transform; } -// Paused via the visible toggle button (see community.js), or while the -// pointer is over the strip so a logo can be clicked. The logo links are out -// of the tab order, so there is no focus-based pause. -.community-logo-track.is-paused, +// Paused while the pointer is over the strip, so a logo can be clicked. The +// logo links are out of the tab order, so there is no focus-based pause. .community-logo-row:hover .community-logo-track { animation-play-state: paused; } @@ -149,8 +130,13 @@ a.community-home-kicker:hover { object-fit: contain; } + img { + transition: transform 0.15s ease; + } + &:hover img { box-shadow: 0 2px 0 0 $community-label-blue; + transform: scale(1.1); } } diff --git a/static/assets/js/community.js b/static/assets/js/community.js index 735728d4..ae1ff28d 100644 --- a/static/assets/js/community.js +++ b/static/assets/js/community.js @@ -1,33 +1,14 @@ /** - * Interactions for /community/ and the homepage - * - * 1. Participant logo marquee pause/play toggle (WCAG 2.2.2: auto-moving - * content lasting more than 5s needs a control to pause it). Both pages. - * 2. "Community in action" photo carousel, /community/ only: pages through - * photos three at a time on desktop, two on tablet, one on mobile. - * Prev/next buttons and a "current / total" status are the only controls; - * there is no auto-scroll. + * "Community in action" photo carousel on /community/: pages through photos + * three at a time on desktop, two on tablet, one on mobile. Prev/next buttons + * and a "current / total" status are the only controls; there is no + * auto-scroll. */ (function () { 'use strict'; - // Participant logo marquee pause/play toggle ----------------------------- - function initLogoMarquee() { - var track = document.getElementById('communityLogoTrack'); - var button = document.getElementById('communityLogoPause'); - if (!track || !button) return; - - button.addEventListener('click', function () { - var paused = track.classList.toggle('is-paused'); - button.setAttribute('aria-pressed', paused ? 'true' : 'false'); - button.textContent = paused ? 'Play' : 'Pause'; - }); - } - function init() { - initLogoMarquee(); - var track = document.getElementById('communityPhotoTrack'); var prev = document.getElementById('communityPhotoPrev'); var next = document.getElementById('communityPhotoNext'); diff --git a/templates/index.html b/templates/index.html index 45535c09..f57fc07a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -137,6 +137,4 @@

{{ card.title }}

- - {%- endblock content -%} diff --git a/templates/macros/community.html b/templates/macros/community.html index fe72fc7a..a3d1a7b9 100644 --- a/templates/macros/community.html +++ b/templates/macros/community.html @@ -46,18 +46,15 @@ {% endcomponent logo_set %} -{# The whole strip: kicker, pause control, and the marquee. Each page supplies - its own wrapper. community.js finds the track and button by id, so a page - holds at most one strip. Logos load eagerly by default, for /community/ - where the strip is above the fold; a page with the strip further down - passes loading="lazy". #} +{# The whole strip: kicker and the marquee. Each page supplies its own + wrapper. Logos load eagerly by default, for /community/ where the strip is + above the fold; a page with the strip further down passes loading="lazy". #} {% component logo_strip(participants, loading="eager") -%}
-
+
{{< logo_set participants={participants} loading={loading} />}} {{< logo_set participants={participants} duplicate={true} loading={loading} />}}