# Bug DREAM-983 - Nest Rails widget Blankslate headings under the widget title

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system, Modules and project features / Backlogs, Modules and project features / Project overview |
| 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 | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Before filing a report

Verified in Chrome’s accessibility tree on QA Stage on 8 November 2026.

### Steps to reproduce

1.  Sign in as a user who can view the project overview and meetings. The staging check used an administrator.
2.  Open [123 - New project → Overview](https://qa.openproject-stage.com/projects/NEWPR) as a user with no upcoming meetings in that project.
3.  Navigate by headings or inspect the browser accessibility tree. Find **My meetings** and the **No upcoming meetings** heading in the widget.

### What is the buggy behavior?

**My meetings** and **No upcoming meetings** are both exposed as level 3 headings. Heading navigation presents the empty message at the same level as the widget title. The same pattern is visible in **Actual costs by month**, where **Start tracking your time and costs** is also a level 3 heading.

### What is the expected behavior?

The widget title remains a level 3 heading. An empty-state heading within that widget is level 4, so heading navigation conveys that the message belongs to the widget.

### Important note

The heading levels were verified in Chrome’s accessibility tree. The reproduction records browser-exposed heading levels rather than the wording of any particular screen reader.

### **Logs**

No console output was captured.

### Screenshots and other files

The browser accessibility tree exposes both heading pairs at level 3.

### 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.

## Developer context

Rails-rendered widgets on My page, project Overview and the Backlogs sprint report render their Blankslate empty-state heading at `h3`. The widget title (`Grids::WidgetBoxComponent::Header`) is also an `h3`, so screen reader users hear the empty-state message as a separate section next to the widget, not as content inside it. Axe does not flag this, because its `heading-order` rule only catches skipped levels.

<mention class="mention" data-id="DREAM-978" data-type="work_package" data-text="#DREAM-978">#DREAM-978</mention> (<https://github.com/opf/openproject/pull/26618>) fixed the Angular widgets (documents, time entries, embedded work package graph) by rendering their empty-state heading as `h4`.

## Goal

Every Blankslate rendered inside a widget uses `with_heading(tag: :h4)`, so its heading nests under the widget's `h3` title.

Affected widgets (15 headings in 12 files):

  - Grids: `favorite_projects`, `members` (2), `news`, `project_timeline`, `subitems` (2)
  - Backlogs sprint report: `burndown_chart`, `created_resolved_chart`, `work_package_overview`, `work_package_table`
  - Budgets: `budget_by_cost_type` (2)
  - Costs: `actual_costs`
  - Meetings: `meetings`

## Notes

  - Feature specs should assert the level, e.g. `have_heading("…", level: 4)`, since axe passes either way.
  - Consider making `Grids::WidgetComponent` pass the level down, so new widgets can't regress.
