Repository navigation
Conversation
This was referenced Nov 19, 2026
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 19, 2026 14:11
dd48757 to
33a7215
Compare
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4955/ |
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 19, 2026 14:25
33a7215 to
dd48757
Compare
This was referenced Nov 19, 2026
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 19, 2026 16:22
dd48757 to
539d8a5
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 19, 2026 16:27
539d8a5 to
dd48757
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 20, 2026 08:56
dd48757 to
17d827c
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 24, 2026 08:21
a507da9 to
1dedaa1
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 24, 2026 12:15
1dedaa1 to
cff0079
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 30, 2026 11:37
cff0079 to
a369c79
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 30, 2026 12:01
a369c79 to
6bc3c8b
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 30, 2026 12:15
6bc3c8b to
284d00f
Compare
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 30, 2026 12:22
284d00f to
7939c2f
Compare
Each folder and heading row in the legacy sidebar repeated `peer grid grid-cols-[1fr_auto] w-full` on its title row, and `group/label flex mr-2 items-start` plus a `nav-toggle-btn` div around the chevron in its toggle. The row keeps `peer`, the label becomes the button, and `styles.css` sets the grid, the label's place, its button look and the open chevron's rotation. Island rows keep their markup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With self-start, a wrapped folder title left the area below the chevron unclickable. The label fills the row as it did with the old wrapper, and the chevron carries the padded hover box the inner div used to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
akira28
force-pushed
the
feature/sidebar-folder-toggle
branch
from
November 30, 2026 12:48
7939c2f to
92e139e
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Folder and heading rows in the sidebar no longer repeat their layout classes, and their toggle loses a wrapper element. The API sidebar is another 3–4% smaller, and it looks and behaves the same.
Affects: Site UI, API reference
Stack: 2 of 4, on top of #4953, under #4956.
Prompt summary: Stack the third sidebar markup step on top of #4953: a lighter folder toggle. The three PRs come from the sidebar analysis for elastic/docs-eng-team#1183, which is about bringing API pages under Googlebot's 2 MB HTML limit.
Why
Folder rows take about 500 bytes each, and the Kibana API sidebar has 72 of them on every page. Each title row repeated
peer grid grid-cols-[1fr_auto] w-full. Each toggle repeatedgroup/label flex mr-2 items-starton its label and wrapped its chevron in adiv.nav-toggle-btn.What
The title row keeps only
peerpages-nav.tsand the CSS that opens a subtree both find the row throughpeer, so it stays. A rule in Tailwind'sutilitieslayer, at no specificity, applies the grid the classes set.The label is the button
The chevron now sits directly in the
label. The label fills the row height, as it did with the old classes, so on a title that wraps to two lines a click below the chevron still toggles the folder. The chevron takes the padding, rounding and hover background the.nav-toggle-btnwrapper had, so the button box stays 22×22 at the top of the row.The open chevron follows the label's checkbox
The chevron's open rotation keyed on the
group/labelclass. It now keys on.nav-folder > .peer > label:has(:checked).Nothing that the expand and collapse logic reads changes. That logic is
pages-nav.tsandNavigationCurrentMarker, and it reads the checkbox,.peer,li.nav-folderand.nav-subtree-clip. Island rows, which link out with a double chevron and have no checkbox, keep their markup.Results
An isolated build of
docs/:mainoperation-osquerydeletepacks)operation-reindex)This is less than the analysis estimated (18 KB per Kibana sidebar). That estimate replaced the whole toggle with one checkbox, which would change how it is clicked and styled.
Compared with #4953's build:
/syntax/tabs. This covers desktop and tablet size, with folders as loaded and with every folder open.Out of scope: the
NAVIGATION_PREVIEWstyles inpages-nav-figma.css. They key on.peer,.nav-chevronand the checkbox, which this PR keeps, but I did not screenshot that flag.Verify
Check on the preview
🤖 Generated with Claude Code