Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.3] Blob view: bandaid selection coloring #60354

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

sourcegraph-release-bot
Copy link
Collaborator

Codemirror applies its own styling for selections, and when the blob view is focused, that styling is higher precedence than the overrides we provide. More confusingly, sometimes (it's not deterministic) the codemirror styling does not respect the light/dark theme settings, which makes selection look very broken. It's still not clear to me why the theme variable is not being respected, but given our proximity to code freeze, this just adds an !important to our theme overrides to make it not feel super broken.

Slack thread

Before:
image

A capture of the CSS selector that was problematic:
<img width="479" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/12631702/59cfa635-fe7c-44e6-9fa9-4d5c0c7828b8">

Test plan

Visually checked that there are no more dark backgrounds and opened the console to double check that the !important was showing up and causing that style to apply at higher precedence than the built-in themes


Backport 8d5e4a5 from #60344

bandaid selection coloring in blob view

(cherry picked from commit 8d5e4a5)
@keegancsmith keegancsmith added the backport/bugfix Standard patches to fix bugs label Feb 9, 2024
@keegancsmith keegancsmith enabled auto-merge (squash) February 9, 2024 08:30
@keegancsmith keegancsmith merged commit 4af1413 into 5.3 Feb 9, 2024
@keegancsmith keegancsmith deleted the backport-60344-to-5.3 branch February 9, 2024 08:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants