Skip to content

Fix code feedback popover styling on dark backgrounds#40

Open
Blargian wants to merge 4 commits into
mainfrom
fix-code-feedback-popover-styling
Open

Fix code feedback popover styling on dark backgrounds#40
Blargian wants to merge 4 commits into
mainfrom
fix-code-feedback-popover-styling

Conversation

@Blargian
Copy link
Copy Markdown
Member

The "Report incorrect code" popover on code blocks had three issues visible on the deployed site (not in local mint dev, which doesn't render the widget):

  • Cancel/Submit buttons were 4px corners inside a 16px-rounded card, because the earlier global a.rounded-xl, button.rounded-xl { 4px } rule (meant for sidebar nav) flattens every rounded-xl button.
  • Submit's label is <span class="text-white"> inside a dark:bg-primary-dark (brand yellow #fdff75) button — white on yellow is unreadable in dark mode.
  • The popover's shadow-md is invisible against the #0b0c0e codeblock background, so the card didn't appear to float.

Scope a restore of rounded-xl to 12px, force the submit label dark on the yellow pill, and give the popover a real drop shadow in dark mode.

The "Report incorrect code" popover on code blocks had three issues
visible on the deployed site (not in local mint dev, which doesn't
render the widget):

- Cancel/Submit buttons were 4px corners inside a 16px-rounded card,
  because the earlier global `a.rounded-xl, button.rounded-xl { 4px }`
  rule (meant for sidebar nav) flattens every rounded-xl button.
- Submit's label is `<span class="text-white">` inside a
  `dark:bg-primary-dark` (brand yellow #fdff75) button — white on
  yellow is unreadable in dark mode.
- The popover's `shadow-md` is invisible against the #0b0c0e
  codeblock background, so the card didn't appear to float.

Scope a restore of `rounded-xl` to 12px, force the submit label dark
on the yellow pill, and give the popover a real drop shadow in dark
mode.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 21, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🟢 Ready View Preview May 21, 2026, 3:11 PM

- integrations/language-clients/java/jdbc.mdx: two `clickhouse-client`
  links were stub MIGRATE placeholders pointing at the (non-existent)
  /integrations/sql-clients/sql-console. Point them at the real CLI
  client page at /core/concepts/features/interfaces/client.
- _site/redirects.json: `/optimize` was redirecting to
  /core/guides/performance-and-monitoring, which doesn't exist; the
  page lives at /core/guides/clickhouse/performance-and-monitoring.
- _site/redirects.json: `/development/adding_test_queries` was
  redirecting to /resources/develop-contribute/tests, which doesn't
  exist; the page lives at /resources/develop-contribute/contribute/tests
  (anchor #adding-a-new-test is preserved).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The popover sat at near-black `bg-codeblock` (#0b0c0e) while the code
block it reports on uses #282828, so the widget looked like an
unrelated floating card. Match the popover background to #282828; drop
the nested textarea and Cancel button to the page background (#1d1d1d)
so they read as recessed surfaces; and lift internal borders to #3c3c3c
(same treatment used on accordion borders) so they stay visible against
the new surface colors.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
With the resting textarea border now at #3c3c3c, the shipped
`dark:focus:border-gray-700` (#374151) is darker than the baseline
and `focus:outline-0` strips the outline, so focusing the textarea
produced no visible change. Switch the focus border to the brand
yellow (matching the Submit button next to it) and add a faint
matching ring so focus is unambiguous in dark mode.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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