Skip to content

Update from code changes: document code block copy button CSS classes - #7003

Merged
dks333 merged 1 commit into
mainfrom
mintlify/5b65c600
Aug 17, 2026
Merged

Update from code changes: document code block copy button CSS classes#7003
dks333 merged 1 commit into
mainfrom
mintlify/5b65c600

Conversation

@mintlify

@mintlify mintlify Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents two new CSS class hooks on code blocks — code-block-copy-button and code-block-fade-overlay — so users can target and style (or hide) the copy button and fade overlay from custom CSS.

Changes

  • Added both classes to the "Content components" list in the CSS selectors reference on customize/custom-scripts.mdx.
  • Included the display: none; example for hiding the copy button.
  • Mirrored the same additions in the Spanish, French, and Chinese versions of the page.

Triggered by mintlify/mint#10204.


Note

Low Risk
Documentation-only updates to the CSS selector reference; no runtime or product code changes.

Overview
Documents two new element selector hooks for code blocks in the custom scripts CSS reference (customize/custom-scripts.mdx and localized copies).

Adds code-block-copy-button and code-block-fade-overlay under the “Content components” accordion, next to the existing code-block / code-block-icon entries. The copy-button line includes a concrete hide example: .code-block-copy-button { display: none; }.

Same additions are mirrored in the Spanish, French, and Chinese custom-scripts pages.

Reviewed by Cursor Bugbot for commit 15f2c41. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
mintlify 🟡 Building Aug 17, 2026, 8:01 PM

@mintlify

mintlify Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
tomee 🟡 Building Aug 17, 2026, 8:01 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify
mintlify Bot requested a review from dks333 August 17, 2026 20:02
@dks333
dks333 merged commit f41b832 into main Aug 17, 2026
6 checks passed
@dks333
dks333 deleted the mintlify/5b65c600 branch August 17, 2026 20:02
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