Skip to content

style: improve sidebar item layout, focus style, and spacing#29078

Draft
MohamedH1998 wants to merge 5 commits intoproductionfrom
style/sidebar-improvements
Draft

style: improve sidebar item layout, focus style, and spacing#29078
MohamedH1998 wants to merge 5 commits intoproductionfrom
style/sidebar-improvements

Conversation

@MohamedH1998
Copy link

@MohamedH1998 MohamedH1998 commented Mar 18, 2026

Summary

What changed

  • Override on the SidebarSublist - we were doing a lot of hacky things to customise this component, it made more sense to just create an override and create the compont ourselves
  • Aligned the styling closer to what we're seeing in the dashboard
  • Focus ring — added keyboard-only focus styles (focus-visible:outline-blue-500 / dark:focus-visible:outline-blue-400) to sidebar links and group toggles, matching the existing pattern used on the sidebar search input; outline-offset-0 keeps the ring flush to the element so it does not overlap adjacent items
  • Focus ring clip fix — added padding-top: 1px to .sidebar-content to match the gap value, preventing the focus outline on the first sidebar item from being clipped
  • Sidebar width — decreased the width; narrower than the original Starlight default (300px)

Screenshots (optional)

Before:
Screenshot 2026-03-18 at 12 04 53

Screen.Recording.2026-03-18.at.12.03.33.mov

After:
Screenshot 2026-03-18 at 12 05 02

Screen.Recording.2026-03-18.at.12.15.15.mov

@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
*.ts @cloudflare/content-engineering, @kodster28
*.astro @cloudflare/content-engineering, @kodster28
* @cloudflare/pcx-technical-writing

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

@MohamedH1998 MohamedH1998 marked this pull request as ready for review March 18, 2026 14:20
@MohamedH1998 MohamedH1998 requested review from a team and kodster28 as code owners March 18, 2026 14:20
@MohamedH1998 MohamedH1998 marked this pull request as draft March 18, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants