LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 21, 2026, 2:46 AM
updatedAtNov 21, 2026, 4:40 AM
githubUrlhttps://github.com/neomjs/neo/issues/21702
authorneo-gemini-maryam
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 4:40 AM

TimeAxisHeader hover paints every tick cell steel-blue via grid header hover

neo-gemini-maryam
neo-gemini-maryam commented on Nov 21, 2026, 2:46 AM

Context

Engine 14 release blocker surfaced by @tobiu inspecting https://neomjs.com/dist/production/examples/gantt/basic/index.html (neo-theme-neo-light default; also affects neo-theme-light, neo-theme-neo-dark, neo-theme-dark, and neo-theme-cyberpunk across every Gantt, Scheduler, and Timeline grid). Hovering anywhere over the timeline header turns the entire two-tier time axis (9 Nov major row and all Mon 9–Sun 15 minor tick cells simultaneously) into a solid steel-blue (#6d93b7 in light / neo-light, var(--purple-500) in neo-dark) with a pointer hand cursor, even though TimeAxisHeader is a non-clickable scale projection rather than a sortable column button.

The Problem

Neo.timeline.TimeAxisHeader (src/timeline/TimeAxisHeader.mjs:72) includes 'neo-grid-header-button' in baseCls: ['neo-timeline-header', 'neo-grid-header-button'] so Neo.grid.header.Toolbar layouts and seam borders treat it as a column header item. However:

  1. resources/css/src/grid/header/Button.css:8 sets cursor: pointer; on .neo-grid-header-button, and lines 48–52 set:
       .neo-grid-header-button:hover {
        background-color: var(--grid-header-button-background-color-hover);
        border-color    : var(--grid-header-button-border-hover-color);
        box-shadow      : var(--grid-header-button-box-shadow-hover);
    }
  2. resources/css/src/timeline/TimeAxisHeader.css:4–17 styles .neo-timeline-header.neo-grid-header-button (specificity 0,2,0) at rest with background: var(--neo-timeline-header-background), but defines no :hover override and no cursor: default. Because .neo-grid-header-button:hover also has 0,2,0 specificity (and sets background-color explicitly on hover), hovering anywhere inside the virtualized TimeAxisHeader paints the entire multi-day / multi-hour header strip with --grid-header-button-background-color-hover (#6d93b7 steel-blue in theme-light and theme-neo-light, var(--purple-500) in theme-neo-dark) behind dark #1f2937 / #4b5563 tick text.

The Architectural Reality

  • src/timeline/TimeAxisHeader.mjs:72, 180: baseCls: ['neo-timeline-header', 'neo-grid-header-button'], sortable_: false. TimeAxisHeader is a single virtualized component projecting .neo-timeline-tick-major and .neo-timeline-tick-minor spans across [minPx, maxPx]; it is never clicked to sort.
  • resources/css/src/timeline/TimeAxisHeader.css:4–25: owns structural and state styling of .neo-timeline-header.neo-grid-header-button.
  • resources/css/src/grid/header/Button.css:8, 48–68: owns interactive sort-button hover chrome for ordinary grid columns.
  • Design authority: src/timeline/TimeAxisHeader.mjs:8–15 @summary / @description ("Two-tier timeline header (Neo.timeline.TimeAxisHeader) projecting only viewport-visible major and minor ticks... Instead of mounting or measuring a Neo.grid.header.Button per time slot, TimeAxisHeader spans the full timeAxis.totalSize width"). A whole-axis button hover across all time slots contradicts the virtualized multi-slot scale contract.

The Fix

  1. In resources/css/src/timeline/TimeAxisHeader.css, set cursor: default; on .neo-timeline-header.neo-grid-header-button and explicitly neutralize .neo-grid-header-button:hover on &:hover so background, border, and box-shadow remain anchored to --neo-timeline-header-background and --neo-timeline-border-color (preserving &.neo-locked-end:first-child left seam border and :not(:last-child) right seam border if applicable).
  2. Rebuild CSS (node ./buildScripts/build/themes.mjs -f -n -e dev -t all) and verify npm run check-theme-surfaces.
  3. Add a Playwright test (e.g. under test/playwright/e2e/gantt/ or test/playwright/component/timeline/) hovering .neo-timeline-header across neo-theme-neo-light, neo-theme-light, and neo-theme-neo-dark and asserting getComputedStyle(header).backgroundColor and cursor ('default') do not mutate on :hover.

Decision Record impact: none.

Acceptance Criteria

  • Hovering over .neo-timeline-header in examples/gantt/basic, examples/scheduler/basic, and examples/timeline/basic causes zero background-color, border-color, or box-shadow change across all five shipped themes (neo-theme-neo-light, neo-theme-neo-dark, neo-theme-light, neo-theme-dark, neo-theme-cyberpunk).
  • .neo-timeline-header computes cursor: default rather than pointer.
  • Automated Playwright test asserts computed backgroundColor before and during hover() on .neo-timeline-header (red on dev, green on branch) and npm run build-themes + npm run check-theme-surfaces pass.
  • Before/after whole-page screenshots of examples/gantt/basic hovered in neo-theme-neo-light are attached on the PR.

Out of Scope

  • Styling the non-timeline column header buttons (Task, Studio, etc.) to match --neo-timeline-header-background (tracked separately in the sibling Gantt/Scheduler column-header surface ticket).
  • Interactive click-to-zoom on individual timeline ticks.

Avoided Traps

  • Removing 'neo-grid-header-button' from TimeAxisHeader#baseCls without updating Neo.grid.header.Toolbar / Wrapper selectors and .neo-scheduler / .neo-gantt height: 100% rules that query .neo-grid-header-button. Keeping the structural class while neutralizing cursor and &:hover in TimeAxisHeader.css is zero-blast-radius.

Related

unowned-rationale: Engine 14 release blocker (curated newcomer labels omitted per urgent cut scope); open for immediate maintainer pickup across the swarm.

Live latest-open + closed sweep: checked latest 25 open (79 open total, red band — urgent operator-escalated v14 release blocker with no existing owner) + open and closed search (TimeAxisHeader hover, gantt header, scheduler header, neo-grid-header-button, Out of Scope / Avoided Traps read on #20879, #20932, #20635) at 2026-11-21T01:43Z; no equivalent or prior exclusion found. A2A in-flight sweep: scanned latest 30 messages across all read states (00:58Z–01:43Z); #21695 covers Portal Examples sidebar hover, #21690 covers unbuilt toolbar item measurement, #21692 covers Gantt dependency link clipping — zero claim on TimeAxisHeader hover. MC sweep: query_raw_memories (gantt scheduler top-left header button blue background Task Studio neo-grid-header-button, 8 results) + ask_knowledge_base (type='ticket', 5 refs); no prior ticket or conflicting decision. Own-assignment sweep: 1 open (#21621, PR #21694), disjoint.

Origin Session ID: 59ca0d8c-dfdf-4d07-aefe-8ec5c658a398

Retrieval Hint: "TimeAxisHeader hover neo-grid-header-button-background-color-hover changes all header cells blue gantt basic"