Skip to content

Fix "Ask in ChatGPT" split button border misalignment - #168

Draft
claude[bot] wants to merge 1 commit into
mainfrom
fix-docs-ai-button-border
Draft

Fix "Ask in ChatGPT" split button border misalignment#168
claude[bot] wants to merge 1 commit into
mainfrom
fix-docs-ai-button-border

Conversation

@claude

@claude claude Bot commented Aug 10, 2026

Copy link
Copy Markdown

Requested by Nikita Melnikov · Slack thread

Before: on docs pages, the "Ask in ChatGPT" split button's right dropdown-chevron segment renders 2px taller (34px) than the main button segment (32px), so their rounded borders don't line up.

After: both segments are 32px and their borders align, in both light and dark mode (verified with Playwright measurements against pnpm dev: link and button now both height: 32, boxSizing: border-box, identical top).

How: the global button { all: unset; } reset in docs/components/styles.css (pulled in via the pricing-page slider component, but bundled globally) resets box-sizing to content-box, so the chevron <button>'s 1px borders add to its 32px height while the adjacent <a> segment stays border-box. This PR adds box-sizing: border-box; right after the reset.

Replaces #167, which had misread the request as removing the button.


Generated by Claude Code

The global 'button { all: unset }' reset in docs/components/styles.css
resets box-sizing to content-box, making the bordered dropdown-chevron
segment of the Ask-in-ChatGPT split button render 34px tall next to the
32px border-box link segment. Restore box-sizing: border-box after the
reset so both segments align.
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 10, 2026 11:52am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant