# Bug DREAM-986 - Column header hover hides the keyboard focus ring of the table header row

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-986

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages, Frontend components and Primer design system |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | Yes |
| Pull preview |  |
| List | a11y report 2026 |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Lars Wassermann |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

Reproduced on QA Stage in Chrome on 8 November 2026.

### Steps to reproduce

1.  Sign in as a user who can view work packages and open the [All open table in 123 - New project](https://qa.openproject-stage.com/projects/NEWPR/work_packages).

2.  Move keyboard focus into the table and press **Arrow Up** from the first work package row to focus the header row. With the pointer outside the header, the blue outline runs around the whole row.

3.  Move the pointer over **Subject** while the header row remains focused. To reproduce without moving the pointer after establishing focus, click **Subject** to open its column menu, press **Escape** to return focus to the Subject header cell, then press **Home**, followed by **Arrow Left**, to focus the header row.

### What is the buggy behavior?

Hovering **Subject** hides the top and bottom of the blue focus outline over that column. The rest of the outline remains visible, and keyboard focus stays on the header row.

### What is the expected behavior?

The blue outline stays visible across the entire focused header row, including the hovered column.

### Important note

The failure reproduced with column hover highlighting active in the light theme. Dark mode was outside this check.

### **Logs**

This is a visual focus indication issue. No console output was captured.

### Screenshots and other files

The focus outline was compared on QA Stage with the pointer outside the header and over Subject.

### Environment information

  - **OpenProject installation type** — Hosted QA Stage.

  - **OpenProject version** — 18.0.0, core build `4ba13f725d75cee626f6e297b6bd2a6385d6cb14`.

  - **Browser** — Chrome.

  - **Operating system** — macOS.

  - **Language** — English application UI.

### Technical notes

#### Cause

The work package table's header row shows its keyboard focus ring as an inset `box-shadow` on each `th` (`thead.-sticky tr:focus-visible > th` in `frontend/src/global_styles/content/_table.sass`). Each `th` wraps its content in `.generic-table--sort-header-outer`, which has `z-index: 1` and paints `background: var(--bgColor-muted)` on hover. A positioned child with its own background paints above the parent's inset shadow, so hovering a column header hides the ring for that column while the header row has focus. It reappears when the pointer leaves.

Not a regression from <mention class="mention" data-id="DREAM-846" data-type="work_package" data-text="#DREAM-846">#DREAM-846</mention>: the ring and the hover highlight simply never met before.

Steps: open any work package table, press **Tab** until the header row shows its blue focus ring, move the mouse over a column header such as Subject.

#### Goal

The focus ring stays visible on every header cell while the header row has focus, whatever the pointer hovers. Hover highlighting never hides keyboard focus.

#### Fix direction

  - Check with column highlighting enabled, in light and dark mode. Keyboard users only.

  - Found while testing <mention class="mention" data-id="DREAM-982" data-type="work_package" data-text="#DREAM-982">#DREAM-982</mention> (<https://github.com/opf/openproject/pull/26723>), which changes the header markup; fix after that lands.

### Notes for QA

We decided to remove a small hack around sticky headers that was necessary when the sticky-elements feature was new, but is not needed anymore. That solved this problem, but it affects **all** tables with sticky headers. A sticky header is a header that stays in view while the table is scrolled. That is less than you might assume, because most of the tables which declare sticky headers have surrounding HTML structures so the sticky headers don't apply.

(Potentially) affected tables:

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Work package table</p></td><td class="op-uc-table--cell"><p class="op-uc-p">This was the focus of the ticket.</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Gantt chart</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Similar to the work package table.</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Project list</p></td><td class="op-uc-table--cell"><p class="op-uc-p">This is technically marked with a sticky header, but they still scroll out of view anyway. The problem mentioned above.</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Workflow matrix (edit a workflow)</p></td><td class="op-uc-table--cell"><p class="op-uc-p">The first row is sticky above the column headers. I manually verified they behave the same as <code class="op-uc-code">qa-edge</code>. The column headers are also marked sticky but I couldn't get them to stick (same as project list).</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Workflow summary matrix</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Same as workflow matrix.</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Time entries widget (on my-page and project overview page)</p></td><td class="op-uc-table--cell"><p class="op-uc-p">I couldn't get it to scroll unless I resized the table smaller than the widget would give it.</p></td></tr></tbody></table></figure>

The code also touches the print view, but the Gantt print view looks very broken (cut-off timelines and no WP titles or ids visible) and the normal WP table print view looks the same as before.
