Skip to content
Closed
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
5 changes: 5 additions & 0 deletions src/shared/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@
}
}

::selection {
background: color-mix(in srgb, var(--color-brand) 60%, transparent);
color: #ffffff;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid forcing white selection text

Setting ::selection text color to #ffffff makes selected text hard to read in light theme because the new background is a semi-transparent accent (color-mix(..., transparent)), which becomes a light tint over white surfaces (including default blue accent). This applies globally, so selecting text in inputs/chat can lose contrast; use a contrast-aware foreground (or leave text color unset) instead of hardcoded white.

Useful? React with 👍 / 👎.

}

.content-fade-in {
animation: content-fade-in 0.3s ease-out forwards;
}
Expand Down
Loading