Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement(v2): customizable code snippet copy button #2599

Closed
kripod opened this issue Apr 13, 2020 · 2 comments
Closed

improvement(v2): customizable code snippet copy button #2599

kripod opened this issue Apr 13, 2020 · 2 comments
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers

Comments

@kripod
Copy link
Contributor

kripod commented Apr 13, 2020

🚀 Feature

Currently, the background color of the code snippet copy button is not customizable.

Have you read the Contributing Guidelines on issues?

Yes.

Motivation

Some prism-react-renderer themes use a darker background, on which the copy button is barely visible.

@kripod kripod added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers labels Apr 13, 2020
@kripod
Copy link
Contributor Author

kripod commented Apr 13, 2020

It looks like that #2526 has fixed this problem. However, it'd be great to make other aspects customizable (e.g. uppercased letters for "COPY").

@lex111
Copy link
Contributor

lex111 commented Apr 13, 2020

(e.g. uppercased letters for "COPY").

For these purposes, you need to swizzle the CodeBlock component, these are very special cases to make them customizable.

@lex111 lex111 closed this as completed Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants