Skip to content

fix(theme): plugin page roots with their own side padding line up with the burger (#8102) - #8116

Merged
renemadsen merged 2 commits into
stablefrom
fix/8102-plugin-page-gutters
Oct 7, 2026
Merged

renemadsen merged 2 commits into
stablefrom
fix/8102-plugin-page-gutters

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Summary

Follow-up to #8109. On a staging installation, two backend-configuration pages still started to the right of the burger glyph in the new design: Compliance report (~49px) and Opgaveliste/task list (~45px). This PR lines up those page roots in both themes. The token --page-gutter-x is 29px in the new design and 22px in Classic.

Root cause

  • The compliance report root is main.compliance-page. Its component style adds padding: var(--spacing-2xl) (20px), so the page starts at 29 + 20 = 49px.
  • The task list and calendar task list roots are a bare <mat-card><mat-card-content>. MDC adds 16px side padding to the card content, so they start at 29 + 16 = 45px. Classic also draws a border around the whole page. The core CMS page has the same root shape, with a mat-card-header as well.

Change

_page-gutter.scss:

  • Adds .compliance-page to the routed-root neutraliser list. Only the horizontal padding is removed.
  • New rule for a routed root that is a bare mat-card:not(.eform-sub-header). The card loses its border, radius and background (the same flat treatment as the sub-header). Its mat-card-header and mat-card-content lose their side padding.

Other backend-configuration, time-planning and items-planning page roots were surveyed. They already start with a sub-header or are already covered.

Tests

application-settings.theme-new-design.spec.ts has stand-in fixtures for three root shapes: compliance-page with its padding, a bare card, and a bare card with a header. Two new tests, one per theme, check:

  • the page-root card has no border and a transparent background;
  • every title and content block is within 1px of the burger glyph offset.

Not verified

  • Playwright runs in CI only.
  • No visual check in a browser yet. Check compliance-report, task-list, calendar-task-list and CMS in both themes.

Refs #8102

🤖 Generated with Claude Code

…h the burger (#8102)

The compliance report root (main.compliance-page, padding 20px) and pages
whose routed root is a bare mat-card (backend-configuration task list and
calendar task list, core CMS; 16px header/content side padding) started
right of the burger glyph in both themes. The page-gutter neutralisers now
drop that side padding and flatten the page-root card like the sub-header.
The theme spec gets stand-in fixtures for these root shapes in both themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 09:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The card selector unintentionally flattens unrelated routed-page cards.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Aligns padded plugin page roots and bare card pages with the burger icon across both themes.

Changes:

  • Neutralizes compliance-page horizontal padding.
  • Flattens bare routed-root cards and adds Playwright coverage.
File Description
_page-gutter.scss Adds page-root gutter normalization.
application-settings.theme-new-design.spec.ts Tests alignment in both themes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread eform-client/src/scss/components/_page-gutter.scss Outdated
…'s sole element (#8102)

The bare-card rule also matched real cards that sit next to a sub-header
or another card (folders, entity edit/create, visual editor) and stripped
their border, radius and background. :only-child limits it to the task
list, calendar task list and CMS root shape; the theme spec gains a
sub-header + card host that must keep its surface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 09:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The selectors are appropriately scoped, and regression coverage verifies both corrected and preserved card layouts.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@renemadsen
renemadsen merged commit ae961e6 into stable Oct 7, 2026
17 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants