LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtNov 20, 2026, 11:36 PM
updatedAtNov 21, 2026, 11:56 PM
githubUrlhttps://github.com/neomjs/neo/issues/21676
authorneo-gemini-julia
commentsCount4
parentIssue21140
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 11:56 PM

Distinct hover/select card states and stationary Open live in Examples

Closed v14.0.0/archive-v14-0-0-chunk-5 enhancementdesignaiaccessibilityportal
neo-gemini-julia
neo-gemini-julia commented on Nov 20, 2026, 11:36 PM

Graduated from: Discussion #21670 ([GRADUATED_TO_TICKET]) Supersedes: #21609 (vetoed via D+S & closed), #21606 (closed NOT_PLANNED) Parent Epic: #21140 Decision Record: Not needed Decision Record impact: none

Ownership rationale: Self-assigned directly (good first issue / help wanted omitted) because @tobiu vetoed #21609 and requested immediate delivery + 4-state visual review frames ahead of the Sunday #21140 Engine 14 lock.

Context

@tobiu vetoed #21609 (D+S — Drop+Supersede, IC_kwDODSospM8AAAABpEcIxg) after inspecting /examples cards: disabling mouse selection hid five visual and interaction regressions rather than restoring the original Hover × Selected chromatic state grammar, fixing the moving-target "Open live ↗" CTA, pruning obsolete browser labels, or keeping covers visible. Discussion #21670 converged unanimously across all three active model families (Gemini @neo-gemini-julia, Claude Opus @neo-opus-ada + @neo-opus-vega, and GPT @neo-gpt-euclid).

The Problem

  1. Lost orthogonal (Hover × Selected) cover gradient (apps/portal/view/examples/List.mjs:327-337, resources/css/src/apps/portal/examples/List.css:67-75): getBackgroundImageStyle() writes url(...), linear-gradient(var(--portal-examples-list-gradient-start), var(--portal-examples-list-gradient-end)), which sits invisible behind url(...) because List.css dropped @property declarations and background-blend-mode: overlay from 6fea520d4d:resources/scss/src/apps/portal/examples/List.scss:1-47.
  2. Hover and Select mapped 1:1 to the same drawer (List.css:158-174), hiding ~84%–94% of covers behind an opaque slab (List.css:79).
  3. Moving-target "Open live ↗" CTA (List.css:49, 146-174): Entering a card from below expanded .portal-example-more under .portal-example-title-row, pushing "Open live ↗" ~120 px away from the cursor, while translateY(-2px) shifted every hitbox by 2 px.
  4. Zero-entropy browser string (List.mjs:241-244): 0 / 126 records in apps/portal/resources/data/examples.json override "Chrome, Edge, Firefox, Safari", whereas 9 / 126 explicitly qualify ['Desktop', 'Mobile'] (2 / 9 also have sharedWorkers).
  5. Link focus vs card selection (src/list/Base.mjs:355, src/main/addon/Navigator.mjs:128-136, 193-259, 468-470): Enabling selectOnFocus: true sets autoClick: true, firing a synthetic click on card B's wrapper during focusin before B's native <a> click runs; meanwhile default Navigator steps ArrowUp/ArrowDown by ±1 instead of crossing rows in multi-column CSS grids.

The Architectural Reality

  • Design authority: "the OLD exaples list => it had a blue gradient for HOVERED items visually mixing into the cover image. it had a green background gradient for selected items. an item could have both: hovered and selected, leading to a new custom gradient. of course we need BOTH states and not hacking around... the idea that a list item gets a cover that expands is not bad. but it can not be 1:1 the same for hover and select... i enter an item with the mouse from the bottom, since i want to click the link. the details expand to the top, the link moves AWAY from the cursor. serious UX fail. all examples have support for all browsers at this point. showing them => fail. hiding 80% of a cover for details.... not nice." (@tobiu veto on #21609 + IC_kwDODSospM8AAAABpEcIxg, plus @tobiu clarification relayed in IC_kwDODSospM8AAAABpFueYw: "i only challenged the team to do better" — present distinct 4-state visual candidates on top of the converged interaction contract rather than treating the 2025 palette as a literal restoration order).
  • Named container query (container: examples-list / inline-size on .portal-examples-list.neo-list): Overview (padding: 0), GroupPage (padding-inline: 24px), SearchResults (padding: 0), and standalone (padding-inline: 16px) apply different horizontal paddings, while .content (List.css:62) declares its own inner container-type: inline-size. Naming container: examples-list / inline-size on ul.portal-examples-list and querying @container examples-list (min-width: 704px) (2 × 340px + 24px gap inside ul's content box, equivalent to 736px on a 32px-padded wrapper) switches modes at the exact 1-column ↔ 2-column boundary (900 px and 641 px sidebar layouts stay 1-column).
  • Shared Portal hover token (DC_kwDODSospM4BLeWS): Source OQ1's blue hover stop from var(--sem-color-border-focus) (var(--purple-400) = #3E63DD in theme-neo-dark & theme-neo-light), matching #21674 glass cards.
  • Single arrow-key owner (DC_kwDODSospM4BLeWS, DC_kwDODSospM4BLeXo): Configure navigator: {workerKeys: ['ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowUp']} and selectOnFocus: false on Portal.view.examples.List; Portal.view.examples.ListModel owns body-click toggle (ignoring tagName === 'a' in data.path), Escape (deselectAll()), Left/Right (±1), and Up/Down geometric row traversal via view.getDomRect() + Neo.main.addon.Navigator.navigateTo (handling uniform 3-column, 2-column, leadCard: true 2×2 hero, and 1-column layouts).

The Fix

  • apps/portal/view/examples/List.mjs
  • apps/portal/view/examples/ListModel.mjs
  • resources/css/src/apps/portal/examples/List.css
  • resources/css/theme-neo-dark/apps/portal/examples/List.css
  • resources/css/theme-neo-light/apps/portal/examples/List.css
  • test/playwright/unit/apps/portal/view/examples/ListModel.spec.mjs
  • test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjs
  • test/playwright/e2e/portal/ExamplesCatalogNL.spec.mjs
  1. apps/portal/view/examples/List.mjs: Wire selectionModel: ListModel, selectOnFocus: false, and navigator: {workerKeys: ['ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowUp']}. Structure non-tile cards into two zones:
    • .preview-image-wrap (aspect-ratio: 16 / 9; position: relative; overflow: hidden): .preview-image, top-left .portal-example-group-badge (when showGroup), top-right .neo-multi-window pill (when record.sharedWorkers), and .portal-example-more (rendered inside .preview-image-wrap for @container examples-list (min-width: 704px) / reordered via flex/grid order or CSS grid placement below .portal-example-footer at < 704px! Specifically: make .content a 2-row CSS Grid grid-template-rows: auto auto where .preview-image-wrap and .portal-example-more share grid cell 1 / 1 (align-self: end; max-height: 40%; z-index: 2) at @container examples-list (min-width: 704px) and .portal-example-more moves to grid row 3 below .portal-example-footer at @container examples-list (max-width: 703.98px) — one DOM node, zero duplication!).
    • .portal-example-footer: stationary surface rail with .portal-example-title-row (.neo-title link + .neo-github-image source link + .portal-example-open-cue "Open live ↗") and 2-line .portal-example-feature.
    • Prune browsers from createItemContent; render .portal-example-mobile chip ("Mobile") inside .portal-example-more only when record.environments?.includes('Mobile') (9 / 126 records).
  2. apps/portal/view/examples/ListModel.mjs: Extend Neo.selection.ListModel (Portal.view.examples.ListModel):
    • onListClick(data): return early when data.path?.some(el => el.tagName === 'a'); otherwise toggle isSelected(itemId) ? deselect(itemId) : select(itemId) and sync Navigator.navigateTo when needed.
    • onKeyDownLeft / onKeyDownRight: step ±1 across navigable records, selecting and calling Neo.main.addon.Navigator.navigateTo.
    • onKeyDownUp / onKeyDownDown: query view.getDomRect(itemIds) to move to the overlapping/nearest card in the previous/next visual row (crossing a row in 3-column and 2×2 leadCard grids, stepping ±1 in 1-column), selecting and calling Neo.main.addon.Navigator.navigateTo.
    • onKeyDownEscape: call deselectAll().
  3. resources/css/src/apps/portal/examples/List.css & theme-neo-{dark,light}/apps/portal/examples/List.css:
    • Apply the design ruling across Rest, Hovered, Selected, and Hovered + Selected (hard-light pointer reflection and entry glint, persistent green selection ring and disclosure, independent neutral keyboard focus ring, and prefers-reduced-motion: reduce support).
    • Remove transform: translateY(-2px) from .neo-list-item:hover (0.0 px hitbox displacement).
    • Cap .portal-example-more at max-height: 40% on .neo-selected (@container examples-list (min-width: 704px)) with <= #3B dark neutral surface (rgba(13, 16, 22, 0.88)) for >= 4.5:1 WCAG AA contrast; keep 0fr → 1fr in-flow below .portal-example-footer at @container examples-list (max-width: 703.98px).

Contract Ledger Matrix

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
Portal.view.examples.List (apps/portal/view/examples/List.mjs) Discussion #21670 OQ2–OQ5 Two-zone card (16:9 cover + stationary footer rail), selectOnFocus: false, navigator.workerKeys for 4 arrow keys, browsers removed, positive Mobile chip on 9/126 records Tile lists (tiles: true) retain compact 4:3 tile markup JSDoc Anchor & Echo Unit + Whitebox E2E (ExamplesCatalogNL.spec.mjs)
Portal.view.examples.ListModel (apps/portal/view/examples/ListModel.mjs) Discussion #21670 OQ4 Non-anchor body click toggles selection; nested <a> clicks preserve prior selection; arrow keys step across columns/rows (getDomRect + Navigator.navigateTo); Escape clears Falls back to ±1 index step if rects are zero/unmounted JSDoc Anchor & Echo ListModel.spec.mjs + ExamplesCatalogNL.spec.mjs
List.css (src + theme-neo-{dark,light}) Discussion #21670 OQ1–OQ2 and the design ruling Hard-light pointer reflection and entry glint, persistent green selection ring and disclosure, independent neutral keyboard focus ring. Named examples-list container splits at 704px and keeps the footer targets fixed Reduced motion retains the state cues and suppresses the movement Source CSS rationale Computed styles, card geometry and hit ownership E2E, and four-state frames in both themes

Signal Ledger

Family Identity Signal Anchor
gemini (author) @neo-gemini-julia [AUTHOR_SIGNAL] DC_kwDODSospM4BLeUc
claude @neo-opus-ada (+ @neo-opus-vega fold check MESSAGE:115a78d8) [GRADUATION_APPROVED] (interaction contract; visual palette opened to candidates A/B/C per IC_kwDODSospM8AAAABpFueYw) DC_kwDODSospM4BLeWS
gpt @neo-gpt-euclid [GRADUATION_APPROVED] DC_kwDODSospM4BLeXo

Unresolved Dissent

None — @neo-gpt-euclid withdrew his DC_kwDODSospM4BLeSg deferral in DC_kwDODSospM4BLeXo, and @neo-opus-ada closed D+S (Drop+Supersede) and withdrew selectOnFocus: true in DC_kwDODSospM4BLeWS.

Unresolved Liveness

  • fable (@neo-fable-mnemosyne, @neo-fable-clio): operator-offline for 2026-11-20 per @tobiu prompt; Scope: low-blast with 3/3 active families (Gemini, Claude, GPT) signed.

Discussion Criteria Mapping

Source Discussion criterion Mode (enumerable | judged) Epic AC / inventory-id Owning sub(s) Delivered PR(s) Achieved evidence Residual / deferral
Target file set (OQ5) enumerable target-files self pending pending none — ticket-resident
OQ1: Orthogonal 4-state visual grammar (Rest, Hovered, Selected, Hovered + Selected) per design ruling + high-contrast focus ring judged AC-1 self pending pending none — ticket-resident
OQ2: Two-Zone card + container: examples-list / inline-size (>= 704px in-frame <= 40% <= #3B .neo-selected band; < 704px in-flow below footer), 0.0 px footer shift & 0 px neighbor cover overlap judged AC-2, AC-3 self pending pending none — ticket-resident
OQ3: Prune browsers (0/126 overrides); render positive Mobile chip on 9/126 records (Workstation vs Grid Big Data control pair); 0 examples.json edits judged AC-4 self pending pending none — ticket-resident
OQ4: selectOnFocus: false + workerKeys + Portal.view.examples.ListModel (<a> click leaves prior selection intact; body click toggles; arrow keys cross rows on 3-col & 2×2 leadCard and step ±1 on 1-col; Escape clears; zero focusables in .portal-example-more) judged AC-5 self pending pending none — ticket-resident
Graduation Criterion 3: Side-by-side 4-state (Rest, Hovered, Selected, Hovered + Selected) review frames on dark + white covers (1440 × 900, 900 × 800, 390 × 844) + two-reader swapped-order ## Cold look judged AC-6 self pending pending none — ticket-resident

Acceptance Criteria

  • AC-1 (Orthogonal 4-state visual grammar & focus visibility): Non-tile cards render four visually distinct states (Rest, Hovered, Selected, Hovered + Selected) in both neo-dark and neo-light, per the design ruling. Keyboard focus is a neutral ring in every state, with prefers-reduced-motion: reduce support.
  • AC-2 (Stationary "Open live ↗" & neighbor hit-target preservation): In multi-column layouts (@container examples-list (min-width: 704px) — verified at 1440 × 900, 1024 × 800, and boundary 704 px list content width), bottom-entry hover, same-card selection, and cross-row selection transfer produce 0.0 px viewport shift (getBoundingClientRect()) on .neo-title, .neo-github-image, and .portal-example-open-cue, AND document.elementFromPoint 25 px into row N+1's cover resolves to row N+1's card (0 px neighbor overlap).
  • AC-3 (Cover-first geometry & 1-column container fallback): 100% of the 16:9 cover is unoccluded on Rest and Hover (and in 1-column < 704 px list widths even when Selected); on the single .neo-selected card at >= 704 px, .portal-example-more stays <= 40% of .preview-image-wrap height with >= 4.5:1 text contrast (measured on a dark and on a light cover in both themes). At < 704 px list content width (900 × 800 sidebar 1-col, 641 × 800, and 390 × 844), .portal-example-more expands in-flow below .portal-example-footer while neighbor covers remain clickable.
  • AC-4 (Metadata pruning): Zero cards render "Chrome, Edge, Firefox, Safari" or standalone "Desktop"; Grid Big Data (environments: ['Desktop', 'Mobile']) renders the Mobile qualification in .portal-example-more without Multi-window, while Workstation (sharedWorkers: true, desktop-only) renders Multi-window without Mobile (0 edits to examples.json).
  • AC-5 (Link-focus isolation & grid keyboard navigation): With card A selected, clicking card B's .neo-title, .portal-example-open-cue, or .neo-github-image (including nested child nodes) activates once and leaves A selected; clicking A's card body or pressing Escape clears selection; Title → Tab → GitHub works with zero focusable elements inside .portal-example-more; ArrowDown crosses a visual row at 1440 × 900 (including around Featured's 2×2 leadCard) and steps +1 at 900 × 800 1-column, keeping DOM focus and .neo-selected on the same card.
  • AC-6 (Visual evidence & ## Cold look): PR body includes side-by-side Rest / Hovered / Selected / Hovered + Selected captures across dark + white covers (1440 × 900, 900 × 800 sidebar 1-col, 390 × 844 in neo-dark & neo-light) plus a two-reader swapped-order ## Cold look.

Out of Scope

  • Modifying apps/portal/resources/data/examples.json, MainContainer.mjs, or GroupPage.mjs ahead of Sunday's #21140 lock.
  • Example cover screenshot retakes in neomjs/pages (owned separately by #21573).

Avoided Traps

  • selectOnFocus: true on Portal.view.examples.List: Sets Navigator autoClick: true, causing focusin on card B's <a> to synthesize a click on B's wrapper and steal selection (DC_kwDODSospM4BLeSg).
  • Out-of-flow top: 100% selection skirt: Overlaps ~82 px across the 13.5 px row gap onto row N+1's cover and steals pointer hits (DC_kwDODSospM4BLeSg).
  • Unnamed @container inside .content: .content declares its own container-type: inline-size (List.css:62), which shadows an unnamed ancestor container query unless ul.portal-examples-list uses a named container (examples-list).
  • Hardcoded +3 arrow-key stride: Breaks on Featured's 2×2 leadCard (card 1 at col 3 row 1 sits directly above card 2 at col 3 row 2, not card 4).

Related

  • Graduated from: Discussion #21670
  • Parent Epic: #21140
  • Sibling Portal hover token alignment: #21651 / #21674 (var(--sem-color-border-focus))
  • Superseded: #21609, #21606 (and replaces #21584's overlaid caption scrim)

Live latest-open + closed sweep: checked latest 20 open (81 open total, red band — folded as leaf under active parent #21140, which has 40 total subs / 7 open) + open and closed searches ("examples card hover select gradient", "examples card hover select", Out of Scope & Avoided Traps read on #21119, #21584, #20724, #21606) at 2026-11-20T22:34Z; no open equivalent or prior exclusion found (@tobiu's #21609 veto explicitly supersedes #21584's overlaid-scrim trap). A2A in-flight sweep: checked latest 30 messages across all read-states at 2026-11-20T22:34Z; zero competing [lane-claim] / [lane-intent] on /examples cards. Memory Core & KB sweep: query_raw_memories ("Portal examples card hover selected gradient Open live moving target", "Discussion #21670 Option E Portal examples list hover select gradient") + ask_knowledge_base(type: 'ticket') run; prior art (4c19ae3e, b860e7c6, 1426be12) reconciled. Own-assignment sweep: 2 open (#20987 Home Screen 1 continuation, #20671 SEO epic — bodies checked, disjoint from /examples cards). Structure-map: N/A (apps/portal/**, resources/css/**, and test/playwright/** only; full structural-pre-flight recorded for apps/portal/view/examples/ListModel.mjs).

Origin Session ID: 2e24013f-7147-44b9-8336-fe86881b029a Retrieval Hint: "Discussion #21670 Portal examples ListModel hover selected overlay gradient Open live stationary"