|
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 | 14 | --bar-background: #{globals.$ion-primitives-neutral-100}; |
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 |
|
|
118 | 118 | font-size: globals.$ion-font-size-300; |
119 | 119 |
|
120 | 120 | text-align: center; |
| 121 | + |
| 122 | + color: globals.$ion-text-default; |
121 | 123 | } |
122 | 124 |
|
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 | + .range-bar { |
| 140 | + background: globals.$ion-bg-neutral-subtle-default; |
| 141 | + } |
| 142 | + |
| 143 | + .range-knob { |
| 144 | + background: globals.$ion-bg-input-disabled; |
| 145 | + border-color: globals.$ion-border-input-default; |
| 146 | + } |
138 | 147 | } |
139 | 148 |
|
140 | 149 | // Range Label Placement - Start |
|
207 | 216 | .range-knob-handle.ion-focused .range-knob { |
208 | 217 | @include globals.focused-state(); |
209 | 218 | } |
| 219 | + |
| 220 | +.range-bar { |
| 221 | + background: globals.$ion-bg-neutral-subtle-default; |
| 222 | +} |
| 223 | + |
| 224 | + |
| 225 | +// Range Pressed |
| 226 | +// ---------------------------------------------------------------- |
| 227 | +.range-knob-handle.ion-activated .range-knob, |
| 228 | +.range-knob-handle.range-knob-pressed .range-knob{ |
| 229 | + background: globals.$ion-bg-input-press; |
| 230 | +} |
0 commit comments