Fix Configuration sub-nav indent lost to CSS specificity #139

Merged
hannah-vernon merged 1 commit from fix/page-index-sub-indent into dev 2026-09-25 12:02:46 -05:00
Owner

What does this PR do?

Follow-up bug fix to D-0058. The nested section index rendered with no visible indent: JetPack allowlist and DoH blocklist sat flush under Routers instead of indented with a left border.

Cause: the .page-index ul reset (list-style/margin/padding) has specificity (0,1,1), which outranks the single-class .page-index-sub rule (0,1,0). Its margin: 0 / padding: 0 therefore overrode the sub-list's margin-left / padding-left, collapsing the indent. Qualifying the selector as .page-index .page-index-sub (0,2,0) restores the intended indent and left border. The narrow-screen display: contents chip-strip behaviour is unchanged.

Fixes #

How was this tested?

  • dotnet build - unaffected (CSS-only change; no code touched)
  • dotnet test - unaffected (no test asserts on computed CSS)
  • Manually tested on ___ (desktop indent + border; narrow chip strip unchanged)

Checklist

  • I have read the Contributing Guide
  • Changes are focused - one logical change per PR
  • Documentation updated (n/a - restores the behaviour already described for D-0058)
  • New dependencies are MIT/Apache-2.0/BSD, security-vetted, and recorded in THIRD-PARTY-NOTICES.md
  • No secrets, credentials, or real infrastructure identifiers in the diff
  • No commented-out code or debug leftovers
## What does this PR do? Follow-up bug fix to D-0058. The nested section index rendered with no visible indent: JetPack allowlist and DoH blocklist sat flush under Routers instead of indented with a left border. Cause: the `.page-index ul` reset (`list-style`/`margin`/`padding`) has specificity (0,1,1), which outranks the single-class `.page-index-sub` rule (0,1,0). Its `margin: 0` / `padding: 0` therefore overrode the sub-list's `margin-left` / `padding-left`, collapsing the indent. Qualifying the selector as `.page-index .page-index-sub` (0,2,0) restores the intended indent and left border. The narrow-screen `display: contents` chip-strip behaviour is unchanged. Fixes # ## How was this tested? - [x] `dotnet build` - unaffected (CSS-only change; no code touched) - [x] `dotnet test` - unaffected (no test asserts on computed CSS) - [ ] Manually tested on ___ (desktop indent + border; narrow chip strip unchanged) ## Checklist - [x] I have read the Contributing Guide - [x] Changes are focused - one logical change per PR - [x] Documentation updated (n/a - restores the behaviour already described for D-0058) - [x] New dependencies are MIT/Apache-2.0/BSD, security-vetted, and recorded in THIRD-PARTY-NOTICES.md - [x] No secrets, credentials, or real infrastructure identifiers in the diff - [x] No commented-out code or debug leftovers
The .page-index ul reset (list-style/margin/padding) has specificity (0,1,1), which outranked the single-class .page-index-sub rule (0,1,0), so its margin-left and padding-left were zeroed and JetPack allowlist and DoH blocklist rendered flush under Routers with no visible indent. Qualify the selector as .page-index .page-index-sub (0,2,0) so the indent and left border apply as intended by D-0058. Mobile display:contents behaviour is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hannah-vernon/viegard-sentinel!139
No description provided.