|
6 | 6 |
|
7 | 7 | :host { |
8 | 8 | --knob-border-radius: #{globals.$ion-border-radius-full}; |
9 | | - --knob-background: #{globals.$ion-primitives-base-white}; |
| 9 | + --knob-background: #{globals.$ion-bg-input-default}; |
10 | 10 | --knob-box-shadow: none; |
11 | 11 | --knob-size: #{globals.$ion-scale-600}; |
12 | | - --knob-handle-size: #{globals.$ion-scale-1000}; |
| 12 | + --knob-handle-size: #{globals.$ion-scale-1100}; |
13 | 13 | --bar-height: #{globals.$ion-scale-200}; |
14 | | - --bar-background: #{globals.$ion-primitives-neutral-100}; |
| 14 | + --bar-background: #{globals.$ion-bg-neutral-subtle-default}; |
15 | 15 | --bar-background-active: #{globals.ion-color(primary, base)}; |
16 | 16 | --bar-border-radius: #{globals.$ion-border-radius-400}; |
17 | | - --height: #{globals.$ion-scale-1000}; |
| 17 | + --height: #{globals.$ion-scale-1100}; |
18 | 18 |
|
19 | 19 | @include globals.typography(globals.$ion-body-md-regular); |
20 | 20 |
|
|
75 | 75 | @include margin(null, null, calc(globals.$ion-space-200 + globals.$ion-font-size-300), null); |
76 | 76 | } |
77 | 77 |
|
78 | | -.range-bar-active { |
| 78 | +.range-bar.range-bar-active { |
79 | 79 | bottom: 0; |
80 | 80 |
|
81 | 81 | width: auto; |
|
115 | 115 |
|
116 | 116 | background: transparent; |
117 | 117 |
|
| 118 | + color: globals.$ion-text-default; |
| 119 | + |
118 | 120 | font-size: globals.$ion-font-size-300; |
119 | 121 |
|
120 | 122 | text-align: center; |
|
123 | 125 | .range-knob { |
124 | 126 | border-width: globals.$ion-border-size-025; |
125 | 127 | border-style: globals.$ion-border-style-solid; |
126 | | - border-color: globals.ion-color(primary, base); |
| 128 | + border-color: globals.$ion-border-primary; |
127 | 129 | box-sizing: border-box; |
128 | 130 | } |
129 | 131 |
|
|
134 | 136 | // icons need to receive the same opacity. |
135 | 137 |
|
136 | 138 | :host(.range-disabled) { |
137 | | - opacity: 0.3; |
| 139 | + --bar-background: #{globals.$ion-bg-neutral-subtle-default}; |
| 140 | + |
| 141 | + .range-knob { |
| 142 | + border-color: globals.$ion-border-input-default; |
| 143 | + |
| 144 | + background: globals.$ion-bg-input-disabled; |
| 145 | + } |
138 | 146 | } |
139 | 147 |
|
140 | 148 | // Range Label Placement - Start |
|
207 | 215 | .range-knob-handle.ion-focused .range-knob { |
208 | 216 | @include globals.focused-state(); |
209 | 217 | } |
| 218 | + |
| 219 | +// Range Pressed |
| 220 | +// ---------------------------------------------------------------- |
| 221 | +.range-knob-handle.ion-activated .range-knob, |
| 222 | +.range-knob-handle.range-knob-pressed .range-knob { |
| 223 | + background: globals.$ion-bg-input-press; |
| 224 | +} |
0 commit comments