docs: mention copy button and fade overlay CSS hooks on Format code page - #7004
Closed
mintlify[bot] wants to merge 1 commit into
Closed
docs: mention copy button and fade overlay CSS hooks on Format code page#7004mintlify[bot] wants to merge 1 commit into
mintlify[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation changes
Adds pointers on
/create/codeto the newcode-block-copy-buttonandcode-block-fade-overlayelement selectors so readers configuring code blocks can find the CSS hooks (already documented in the selector reference by #7003).code-block-copy-button, with thedisplay: none;example.code-block-fade-overlay.Both link to the element selectors section of
customize/custom-scripts.Closes
For Reviewers
When reviewing documentation PRs, please consider:
✅ Technical accuracy
✅ Clarity and completeness
✅ User experience
Generated by Mintlify Agent.
Requested by: ethan@mintlify.com via Slack
Mintlify session: slack_1786996877.907599_C04V261AH2T
Note
Low Risk
Documentation-only cross-links on the Format code page; no product or runtime behavior changes.
Overview
Updates
create/code.mdxso readers configuring code blocks see the same CSS hooks thatcustomize/custom-scriptsalready lists.Under Code blocks, it adds a note that the copy button can be styled or hidden via the
code-block-copy-buttonelement selector, with adisplay: noneexample and a link to the element selectors section.Under Expandable, it extends the existing
expandabledescription to mention the collapsed-state fade overlay and how to style it withcode-block-fade-overlay, again linking to element selectors.Reviewed by Cursor Bugbot for commit de350ed. Bugbot is set up for automated code reviews on this repo. Configure here.