Skip to content

Conversation

@sfc-gh-dmatthews
Copy link
Contributor

📚 Context

The copy button is missing from codeblocks (except those that are inside of docstrings). This PR fixes that and adds a parameter to optionally hide the copy button, such as for blocks used to show file structures.

🧠 Description of Changes

After

image

Before

image

Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@sfc-gh-dmatthews sfc-gh-dmatthews requested review from a team and removed request for sfc-gh-kmcgrady December 8, 2025 05:57
@snehankekre
Copy link
Contributor

snehankekre commented Dec 8, 2025

Just noticed an unintended side effect on code blocks on the API reference page

After image
Before image

@sfc-gh-dmatthews
Copy link
Contributor Author

Thanks @snehankekre! This was a little fiddly, but I think I have a fix. However, it's a little cleaner to change all the code blocks with the theme instead of just RefCards, but if it's design-vetoed, I can move the color changes into more special-casing in the RefCard CSS.

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.

3 participants