Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 729a326

Browse files
committed
fix(ui): Avoid the background invisible when selecting text with background color
1 parent 5f27357 commit 729a326

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

apps/client/src/stylesheets/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,10 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
12221222
background-color: inherit;
12231223
}
12241224

1225+
::selection {
1226+
background-color: var(--selection-background-color);
1227+
}
1228+
12251229
[data-bs-toggle="tooltip"]:not(.button-widget) span {
12261230
padding-bottom: 0;
12271231
border-bottom: 1px dotted;

apps/client/src/stylesheets/theme-next-dark.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@
195195
--scrollbar-background-color: transparent;
196196
--scrollbar-border-color: unset; /* Deprecated */
197197

198+
--selection-background-color: #3399FF70;
199+
198200
--link-color: lightskyblue;
199201

200202
--mermaid-theme: dark;

apps/client/src/stylesheets/theme-next-light.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@
194194
--scrollbar-background-color: transparent;
195195
--scrollbar-border-color: unset; /* Deprecated */
196196

197+
--selection-background-color: #3399FF70;
198+
197199
--link-color: blue;
198200

199201
--mermaid-theme: default;

0 commit comments

Comments
 (0)