Skip to content

Commit d05bd8d

Browse files
committed
Make selected text colour consistent across components
1 parent c6e6db1 commit d05bd8d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

components/dash-core-components/src/components/css/datepickers.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959

6060
.dash-datepicker-input::selection,
6161
.dash-datepicker-input::-webkit-selection {
62-
background: var(--Dash-Fill-Weak);
62+
color: var(--Dash-Fill-Inverse-Strong);
63+
background: var(--Dash-Fill-Interactive-Strong);
6364
}
6465

6566
.dash-datepicker-input-wrapper:focus-within {

components/dash-core-components/src/components/css/input.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
accent-color: var(--Dash-Fill-Interactive-Strong);
4949
}
5050

51+
.dash-input-element::selection,
52+
.dash-input-element::-webkit-selection {
53+
color: var(--Dash-Fill-Inverse-Strong);
54+
background: var(--Dash-Fill-Interactive-Strong);
55+
}
56+
5157
.dash-input-element:disabled {
5258
cursor: not-allowed;
5359
}

components/dash-core-components/src/components/css/sliders.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@
217217

218218
.dash-range-slider-input::selection,
219219
.dash-range-slider-input::-webkit-selection {
220-
background: var(--Dash-Fill-Primary-Active);
220+
color: var(--Dash-Fill-Inverse-Strong);
221+
background: var(--Dash-Fill-Interactive-Strong);
221222
}
222223

223224
.dash-range-slider-input:focus {

0 commit comments

Comments
 (0)