Skip to content

Improve the appearance of Copy Code#124

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Jun 2, 2026
Merged

Improve the appearance of Copy Code#124
cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the visual styling of the “Copy code” button to better match the surrounding UI, including adding a default muted background/border and tweaking hover/active states for light/dark color schemes.

Changes:

  • Add a bordered, muted default appearance for .code-copy-button (instead of transparent/no-border).
  • Adjust hover/active background colors in light and dark modes.
  • Regenerate/update the committed dist/ bundles to include the new embedded CSS.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
styles/code-copy/base.css Adds default muted background and border for the copy button.
styles/code-copy/light.css Updates light-mode hover/active background colors.
styles/code-copy/dark.css Updates dark-mode hover/active background colors.
dist/markedit-preview.js Updates embedded CSS strings to reflect the new copy-button styling.
dist/lite/markedit-preview.js Updates embedded CSS strings to reflect the new copy-button styling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread styles/code-copy/light.css Outdated
Comment thread styles/code-copy/dark.css Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 7 changed files in this pull request and generated 4 comments.

Comment thread src/styling.ts
Comment thread src/render.ts
Comment thread src/styling.ts
Comment thread src/render.ts
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 7 changed files in this pull request and generated no new comments.

@cyanzhong cyanzhong merged commit 95e2c68 into main Jun 2, 2026
2 checks passed
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.

2 participants