feat(reading): polish nav, hub-page heroes, sidebar feedback, h2 counters#11453
feat(reading): polish nav, hub-page heroes, sidebar feedback, h2 counters#11453jd wants to merge 1 commit into
Conversation
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 🤖 Continuous IntegrationWonderful, this rule succeeded.
🟢 👀 Review RequirementsWonderful, this rule succeeded.
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 🔎 ReviewsWonderful, this rule succeeded.
🟢 📕 PR descriptionWonderful, this rule succeeded.
|
There was a problem hiding this comment.
Pull request overview
This PR applies “reading experience” UX polish across the docs site by adjusting responsive navigation behavior, adding optional hub-page title accent styling, relocating page actions to the right sidebar, and removing inherited global H2 auto-numbering.
Changes:
- Lowered the header nav breakpoint so primary nav buttons remain visible at typical laptop widths.
- Added optional
hubAccentfrontmatter to render hub-page H1 titles using the existing section accent color. - Moved the page feedback widget into the right sidebar and removed global H2 auto-numbering (plus related opt-out CSS).
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/styles/index.css | Adds hero-accent H1 styling and removes global H2 numbering CSS. |
| src/styles/api-reference.css | Removes API-reference-specific overrides that were only needed for global numbering. |
| src/pages/changelog/index.astro | Removes changelog heading numbering overrides now made unnecessary. |
| src/pages/changelog/[slug].astro | Removes changelog detail heading numbering overrides now made unnecessary. |
| src/layouts/MainLayout.astro | Stops rendering PageFeedback in the footer slot and updates RightSidebar props. |
| src/content/docs/test-insights.mdx | Enables hubAccent on Test Insights hub page. |
| src/content/docs/merge-queue.mdx | Enables hubAccent on Merge Queue hub page. |
| src/content/docs/index.mdx | Removes no-counter classes from homepage H2s since global numbering is removed. |
| src/content/docs/ci-insights.mdx | Enables hubAccent on CI Insights hub page. |
| src/content.config.ts | Extends docs schema with optional hubAccent boolean. |
| src/components/RightSidebar/RightSidebar.astro | Adds page-actions cluster (feedback + edit link) beneath the ToC. |
| src/components/PageContent/PageContent.astro | Applies hero-accent class to the auto-rendered H1 when hubAccent is set. |
| src/components/Header/Header.astro | Lowers the breakpoint at which nav buttons are hidden. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
057ea7f to
b10bec4
Compare
Revision history
|
b10bec4 to
a780ad6
Compare
a780ad6 to
0de5e2b
Compare
Merge Queue Status
This pull request spent 1 hour 13 minutes 47 seconds in the queue, including 2 minutes 51 seconds running CI. Waiting for
All conditions
ReasonThe pull request #11453 has been manually updated HintIf you want to requeue this pull request, you can post a |
…ters Four small UX fixes for day-2 readers — users already in the docs looking for information. - Lower the top-nav breakpoint from 87em (1392px) to 68em (1088px) so the 5 nav buttons (Dashboard, Slack, Discussions, Changelog, Status) are visible at typical laptop widths. The previous breakpoint dated from when the navbar carried a logo eating the horizontal space; the logo now lives in the left sidebar. - Hub-page light heroes: /merge-queue, /ci-insights, /test-insights H1s now render in their product accent color (teal / purple / orange). Driven by a new optional `hubAccent: true` frontmatter field on the docs schema; PageContent.astro reads it and adds a `hero-accent` class to the auto-rendered H1. CSS hooks the class into the existing `--section-accent` custom property. No new copy, no screenshots, no CTAs — just an accent on the title. - Right-sidebar page-actions cluster: the right column now hosts a PageFeedback widget beneath the table of contents, giving the sidebar a purpose on short doc pages. PageFeedback is mirrored, not moved — the article-footer copy still renders for users on viewports below 82em (where the right sidebar is hidden), with a CSS rule on MainLayout hiding the footer copy when the sidebar is visible. PageMeta's existing Edit-on-GitHub link stays as the single source of truth (no duplication). - Drop the global h2 auto-numbering. The CSS counter that prefixed every h2 with 1., 2., 3. is deleted. The pattern was an Astro Starlight inheritance that doesn't fit reference / conceptual pages; sequential pages can author explicit numbering inline. The homepage h2s' `class="no-counter"` opt-outs are removed since the rule they overrode is gone. Stale `counter-increment: none` guards in changelog and api-reference styles also removed. Change-Id: Ib39618f6b4e3fc79ade43934a3d5db6faad6a551
0de5e2b to
f9ea28b
Compare
Pull request has been modified.
Merge Queue Status
Waiting for any of
All merge conditions
Required conditions to stay in the queue
|
Four small UX fixes for day-2 readers — users already in the docs
looking for information.
Lower the top-nav breakpoint from 87em (1392px) to 68em (1088px)
so the 5 nav buttons (Dashboard, Slack, Discussions, Changelog,
Status) are visible at typical laptop widths. The previous
breakpoint dated from when the navbar carried a logo eating the
horizontal space; the logo now lives in the left sidebar.
Hub-page light heroes: /merge-queue, /ci-insights, /test-insights
H1s now render in their product accent color (teal / purple /
orange). Driven by a new optional
hubAccent: truefrontmatterfield on the docs schema; PageContent.astro reads it and adds a
hero-accentclass to the auto-rendered H1. CSS hooks the classinto the existing
--section-accentcustom property. No new copy,no screenshots, no CTAs — just an accent on the title.
Right-sidebar page-actions cluster: the right column now hosts a
PageFeedback widget beneath the table of contents, giving the
sidebar a purpose on short doc pages. PageFeedback is mirrored,
not moved — the article-footer copy still renders for users on
viewports below 82em (where the right sidebar is hidden), with a
CSS rule on MainLayout hiding the footer copy when the sidebar
is visible. PageMeta's existing Edit-on-GitHub link stays as the
single source of truth (no duplication).
Drop the global h2 auto-numbering. The CSS counter that prefixed
every h2 with 1., 2., 3. is deleted. The pattern was an Astro
Starlight inheritance that doesn't fit reference / conceptual
pages; sequential pages can author explicit numbering inline. The
homepage h2s'
class="no-counter"opt-outs are removed since therule they overrode is gone. Stale
counter-increment: noneguardsin changelog and api-reference styles also removed.