Skip to content

Commit ff61bcd

Browse files
committed
Revert "Add fallback values to CSS variables"
This reverts commit d512910.
1 parent acde803 commit ff61bcd

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
align-items: center;
66
width: 170px; /* default input width */
77
height: 32px;
8-
background: var(--Dash-Fill-Inverse-Strong, #fff);
9-
border-radius: var(--Dash-Spacing, 4px);
10-
border: 1px solid var(--Dash-Stroke-Strong, rgba(0, 18, 77, 0.45));
8+
background: var(--Dash-Fill-Inverse-Strong);
9+
border-radius: var(--Dash-Spacing);
10+
border: 1px solid var(--Dash-Stroke-Strong);
1111
box-sizing: border-box;
1212
container-type: inline-size;
1313
vertical-align: middle;
@@ -21,11 +21,11 @@
2121

2222
/* Input field styles */
2323
.dash-input-element {
24-
padding: var(--Dash-Spacing, 4px) calc(2 * var(--Dash-Spacing, 4px));
24+
padding: var(--Dash-Spacing) calc(2 * var(--Dash-Spacing));
2525
color: inherit;
2626
background: inherit;
2727
border: none;
28-
border-radius: var(--Dash-Spacing, 4px);
28+
border-radius: var(--Dash-Spacing);
2929
flex: 1 1 0;
3030
min-width: 0;
3131
height: 100%;
@@ -66,23 +66,23 @@
6666
width: 32px;
6767
height: 100%;
6868
border: none;
69-
background: var(--Dash-Fill-Inverse-Strong, #fff);
69+
background: var(--Dash-Fill-Inverse-Strong);
7070
cursor: pointer;
7171
font-size: 16px;
7272
font-weight: bold;
73-
color: var(--Dash-Text-Primary, rgba(0, 18, 77, 0.87));
73+
color: var(--Dash-Text-Primary);
7474
}
7575

7676
.dash-input-stepper:hover {
77-
background: var(--Dash-Fill-Primary-Hover, rgba(0, 18, 77, 0.04));
77+
background: var(--Dash-Fill-Primary-Hover);
7878
}
7979

8080
.dash-input-stepper:active {
81-
background: var(--Dash-Fill-Primary-Active, rgba(0, 18, 77, 0.08));
81+
background: var(--Dash-Fill-Primary-Active);
8282
}
8383

8484
.dash-input-stepper:disabled {
85-
background: var(--Dash-Fill-Inverse-Strong, #fff);
85+
background: var(--Dash-Fill-Inverse-Strong);
8686
opacity: 0.5;
8787
cursor: default;
8888
}

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
flex-grow: 1;
3333
border-radius: 9999px;
3434
height: 4px;
35-
background-color: var(--Dash-Fill-Disabled, rgba(0, 24, 102, 0.1));
35+
background-color: var(--Dash-Fill-Disabled);
3636
}
3737

3838
.dash-slider-root[data-orientation='vertical'] .dash-slider-track {
@@ -45,7 +45,7 @@
4545
position: absolute;
4646
border-radius: 9999px;
4747
height: 100%;
48-
background-color: var(--Dash-Fill-Interactive-Strong, #7f4bc4);
48+
background-color: var(--Dash-Fill-Interactive-Strong);
4949
}
5050

5151
.dash-slider-root[data-orientation='vertical'] .dash-slider-range {
@@ -59,8 +59,8 @@
5959
display: block;
6060
width: 16px;
6161
height: 16px;
62-
background-color: var(--Dash-Fill-Interactive-Strong, #7f4bc4);
63-
border: 2px solid var(--Dash-Fill-Inverse-Strong, #fff);
62+
background-color: var(--Dash-Fill-Interactive-Strong);
63+
border: 2px solid var(--Dash-Fill-Inverse-Strong);
6464
border-radius: 50%;
6565
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
6666
cursor: pointer;
@@ -88,7 +88,7 @@
8888
position: absolute;
8989
font-size: 12px;
9090
line-height: 12px;
91-
color: var(--Dash-Text-Strong, rgba(0, 9, 38, 0.9));
91+
color: var(--Dash-Text-Strong);
9292
white-space: nowrap;
9393
pointer-events: none;
9494
}
@@ -99,7 +99,7 @@
9999
bottom: 100%;
100100
left: 50%;
101101
transform: translateX(-50%);
102-
background-color: var(--Dash-Fill-Disabled, rgba(0, 24, 102, 0.1));
102+
background-color: var(--Dash-Fill-Disabled);
103103
width: 4px;
104104
height: 6px;
105105
border-radius: 2px;
@@ -119,21 +119,21 @@
119119
width: 8px;
120120
height: 8px;
121121
border-radius: 50%;
122-
background-color: var(--Dash-Fill-Disabled, rgba(0, 24, 102, 0.1));
122+
background-color: var(--Dash-Fill-Disabled);
123123
}
124124

125125
.dash-slider-tooltip {
126126
display: none;
127127
position: absolute;
128-
border-radius: var(--Dash-Spacing, 4px);
129-
padding: calc(var(--Dash-Spacing, 4px) * 3);
128+
border-radius: var(--Dash-Spacing);
129+
padding: calc(var(--Dash-Spacing) * 3);
130130
font-size: 12px;
131131
line-height: 1;
132132
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
133-
background-color: var(--Dash-Fill-Inverse-Strong, #fff);
133+
background-color: var(--Dash-Fill-Inverse-Strong);
134134
user-select: none;
135135
z-index: 1000;
136-
fill: var(--Dash-Fill-Inverse-Strong, #fff);
136+
fill: var(--Dash-Fill-Inverse-Strong);
137137
}
138138

139139
.dash-slider-tooltip.always-visible {
@@ -142,7 +142,7 @@
142142

143143
/* Include property to mimic rc-slider behavior */
144144
.dash-slider-root:not([data-included='false']) .dash-slider-range {
145-
background-color: var(--Dash-Fill-Interactive-Strong, #7f4bc4);
145+
background-color: var(--Dash-Fill-Interactive-Strong);
146146
}
147147

148148
.dash-slider-root[data-included='false'] .dash-slider-range {
@@ -156,16 +156,16 @@
156156
}
157157

158158
.dash-slider-root[data-disabled] .dash-slider-track {
159-
background-color: var(--Dash-Fill-Disabled, rgba(0, 24, 102, 0.1));
159+
background-color: var(--Dash-Fill-Disabled);
160160
}
161161

162162
.dash-slider-root[data-disabled] .dash-slider-range {
163-
background-color: var(--Dash-Fill-Disabled, rgba(0, 24, 102, 0.1));
163+
background-color: var(--Dash-Fill-Disabled);
164164
}
165165

166166
.dash-slider-root[data-disabled] .dash-slider-thumb {
167167
cursor: not-allowed;
168-
border-color: var(--Dash-Fill-Disabled, rgba(0, 24, 102, 0.1));
168+
border-color: var(--Dash-Fill-Disabled);
169169
}
170170

171171
.dash-slider-container {

0 commit comments

Comments
 (0)