Repository navigation
style(markdown): align accordion groups with mintlify - #497
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Mode: standard (this is a visual refresh of @docubook/markdown components, not on a senior-critical path). Overall assessment: READY. I reviewed the single commit that moves accordion groups to one shared bordered container with row dividers, plus the matching header, focus and motion styling.
- Group container owns the frame:
AccordionsMdxnow has the border, 16px radius andoverflow: hidden, and group items drop their own border and radius. Rows are separated by the adjacent-siblingborder-toprule instyles.css. - Header and content restyle: the header is now transparent with weight 500 and inherits its font. The chevron and icon shrink to 1rem through the new
.mdx-accordion-iconclass. Long titles wrap withoverflowWrap: anywhere, and content scrolls horizontally instead of overflowing. - Interaction styling: hover tint, an inset
:focus-visibleoutline that stays inside theoverflow: hiddenframe, and aprefers-reduced-motionrule. Both!importantuses are needed to override inline styles (background: transparentand the chevrontransition). - Regression tests: these cover click/Enter/Space toggling, the
aria-controls/aria-labelledbywiring, and one-open-panel behaviour in a group. I ran the Accordion, Accordions andCodeBlockBleedsuites locally and all 12 tests passed. The phone code-block bleed exclusion still holds because accordions keepdata-mdx-wrapper.
Top priorities: none blocking.
ℹ️ New .mdx-accordion-icon class is missing from the README class table
The README says every component has stable CSS class names you can target for overrides, and it lists all the other accordion classes. The new icon class this PR adds is not in that list, so anyone overriding the styles has no documented way to find it. This doesn't block the merge.
Technical details
# Document `.mdx-accordion-icon`
## Affected sites
- packages/markdown/README.md:147-152 — accordion class table lists `.mdx-accordion`, `-group`, `-group-item`, `-header`, `-chevron`, `-content` but not `-icon`
## Required outcome
- Add a `.mdx-accordion-icon` row (`Accordion`, "Optional Lucide icon wrapper in header") so the documented override surface matches `AccordionMdx.tsx:99`.claude-opus-5-5 | 𝕏

Summary
Accordion groups now render as one connected, rounded container with thin row dividers instead of separate spaced cards.
Changes
@docubook/markdown.Verification
pnpm --filter @docubook/markdown typecheckandpnpm --filter @docubook/markdown buildpassed.Agent Context
/tmp/flame-accordion-build.log,/tmp/flame-accordion-verify.log,/tmp/flame-accordion-pr-push.log