Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/sim/app/_styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,13 @@ html.sidebar-booting .sidebar-shell-inner {
outline: none;
}

/* Consistent branded text-selection color everywhere, independent of the
browser/OS default (which dims when the window loses focus). */
::selection {
background-color: var(--selection);
color: var(--white);
}
Comment thread
waleedlatif1 marked this conversation as resolved.
Comment thread
waleedlatif1 marked this conversation as resolved.

body {
background-color: var(--bg);
color: var(--text-primary);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@
text-decoration: line-through;
}

/* Selecting struck-through text reads in the primary color like any other highlighted text, so the
selection looks uniform (it returns to the muted strike color when deselected). */
.rich-markdown-prose del::selection,
.rich-markdown-prose s::selection {
color: var(--text-primary);
}

.rich-markdown-prose a {
color: var(--brand-secondary);
cursor: pointer;
Expand All @@ -126,14 +119,6 @@
text-decoration: underline;
}

/* When a link is selected, drop its blue so it reads like any other highlighted text — the standard
MD-editor convention (Linear, Slack) where the selection takes precedence over the link color.
Only the selected state is affected; an unselected link stays blue. */
.rich-markdown-prose a::selection,
.rich-markdown-prose a ::selection {
color: var(--text-primary);
}

/* Render the gap cursor (e.g. above a leading divider) as a normal vertical caret rather
than ProseMirror's default short horizontal bar, which reads as a stray underscore. */
.rich-markdown-prose .ProseMirror-gapcursor::after {
Expand Down
Loading