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

fix: coping text from dark mode shouldn't keep the colors #3958

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adoxentor
Copy link

Summary

When copying text from an answer in dark mode, the copied content retains the dark mode styling (light text on dark background) when pasted into other applications like Google Docs.
This is unlike other writing assistance platforms, such as ChatGPT, which have implemented a fix for this issue.
This fix registers a copy event listener that removes the styling from the text.
Fixes: #3954

Change Type

Please delete any irrelevant options.

  • Bug fix

Testing

Just copy a message from the bot that has formatting into Google Docs.

Test Configuration:

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • My changes do not introduce new warnings

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.

[Bug]: Copying in dark mode copies the dark style
1 participant