Fix double chevron issue caused by Mintlify update#324
Fix double chevron issue caused by Mintlify update#324patcapulong wants to merge 2 commits intomainfrom
Conversation
Hide ::after pseudo-elements that Mintlify may have added to accordion and expandable summaries, which were causing duplicate chevrons alongside our custom ::before chevrons. - Added ::after hiding rules for accordion-group summaries - Added ::after hiding rules for standalone accordion summaries - Added ::after hiding rules for API reference expandable sections - Added additional icon element selectors (span[data-icon], [data-slot="icon"]) https://claude.ai/code/session_01Csh9eQughWs7SqfyMfFVw4
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR patches Confidence Score: 5/5Safe to merge — pure CSS defensive fixes with no logic changes or functional risk. All changes are additive CSS display: none / content: none rules targeting Mintlify-generated pseudo-elements and icon slots. No application logic, no OpenAPI spec, and no MDX content is touched. The selectors are appropriately scoped and the fix directly addresses the stated double-chevron symptom. No files require special attention.
|
| Filename | Overview |
|---|---|
| mintlify/style.css | Adds ::after hiding rules and new icon-element selectors to prevent Mintlify-generated duplicate chevrons; also expands sidebar SVG selectors to handle the new wrapped-div DOM structure. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Mintlify Update] -->|adds ::after chevron| B[Duplicate chevron visible]
B --> C{Element type}
C -->|accordion-group summary| D[accordion-group summary::after hidden]
C -->|standalone accordion summary| E[content and prose accordion summary::after hidden]
C -->|API playground expandable| F[api-playground details summary::after hidden]
C -->|sidebar nav button| G[SVG wrapper div and svg hidden]
D --> H[Single chevron via custom ::before]
E --> H
F --> H
G --> H
Reviews (2): Last reviewed commit: "Fix API sidebar chevron selectors and cl..." | Re-trigger Greptile
Mintlify now wraps the API reference sidebar chevron SVG in a child div, so the previous direct-child selector missed it and left the native chevron visible beside our custom one. Also clear the floating Ask AI input's own pseudo-element so the bottom bar stays fully transparent. Made-with: Cursor
Pull request was closed
## Summary - supersede the closed `#324` with a fresh PR that keeps the existing accordion and expandable chevron guards - hide Mintlify's newly wrapped API Reference sidebar chevron markup so it no longer renders beside our custom chevron styling - make the floating Ask AI input's bottom bar pseudo-element fully transparent ## Test plan - [x] Run `make lint` - [ ] Verify the API Reference sidebar shows a single chevron in the Mintlify preview - [ ] Verify the Ask AI input bottom bar is transparent in the Mintlify preview Made with [Cursor](https://cursor.com) --------- Co-authored-by: Claude <noreply@anthropic.com>
Hide ::after pseudo-elements that Mintlify may have added to accordion and expandable summaries, which were causing duplicate chevrons alongside our custom ::before chevrons.
https://claude.ai/code/session_01Csh9eQughWs7SqfyMfFVw4