Skip to content

Add better color on selected text in dark and light mode #22100

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nee-k
Copy link

@nee-k nee-k commented Jul 9, 2025

Description This PR addresses issue #2799 by adding better color for selected text in dark mode.

The current selection color in dark mode is not very visible, making it difficult to see what text is selected.

Changes - Added ::selection and ::-moz-selection pseudo-elements to dark.css with improved colors for dark mode\n- Added the same styling to the default light theme in _colors.css for consistency

Screenshots:
Before: Text selection in dark mode was difficult to see
After: Text selection now uses the accent brand color with white text for better visibility

Solved with Zencoder

nee-k added 3 commits July 9, 2025 14:22
This change modifies the RunkitTag class to use inner_html instead of text
when parsing the content, which preserves HTML tags in the runkit source.

Fixes forem#1228
@nee-k nee-k requested review from a team as code owners July 9, 2025 09:32
Copy link
Contributor

github-actions bot commented Jul 9, 2025

Thank you for opening this PR! We appreciate you!

For all pull requests coming from third-party forks we will need to
review the PR before we can process it through our CI pipelines.

A Forem Team member will review this contribution and get back to
you as soon as possible!

Copy link
Contributor

github-actions bot commented Jul 9, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@nee-k
Copy link
Author

nee-k commented Jul 9, 2025

I have read the CLA Document and I hereby sign the CLA

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.

1 participant