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 CodeMirror theme selection background color #14841

Merged
merged 1 commit into from Jul 20, 2023

Conversation

AllanChain
Copy link
Contributor

@AllanChain AllanChain commented Jul 18, 2023

References

Fixes #14737

Code changes

Update the CSS selector for the selection background color.

Previously, the rule from the base CodeMirror6 theme .cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground takes precedence over our .cm-focused .cm-selectionBackground rule, so the theme selection color is not taking effect. Changing the selector to be the same as the base theme fixes the issue.

User-facing changes

Before After
Before After

Backwards-incompatible changes

None.

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@welcome
Copy link

welcome bot commented Jul 18, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

Thank you @AllanChain.

Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

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

Thanks @AllanChain

@fcollonval fcollonval merged commit fa96c72 into jupyterlab:main Jul 20, 2023
77 of 84 checks passed
@welcome
Copy link

welcome bot commented Jul 20, 2023

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@fcollonval
Copy link
Member

@meeseeksdev please backport to 4.0.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Jul 20, 2023
fcollonval pushed a commit that referenced this pull request Jul 23, 2023
…14864)

Co-authored-by: Allan Chain <36528777+AllanChain@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme problem: Focused selection always ends up with background #d7d4f0
3 participants