|
156 | 156 | $box-background-focus: hsl(from var(--box-background) h s calc(l * 0.9)); |
157 | 157 | } |
158 | 158 |
|
159 | | - @if not($box-disabled-background) and $box-background { |
160 | | - $box-disabled-background: hsla(from var(--box-background) h s l / 0.4); |
161 | | - } |
162 | | - |
163 | | - @if not($disabled-placeholder-color) and $box-disabled-background { |
164 | | - $disabled-placeholder-color: adaptive-contrast(var(--box-disabled-background)); |
165 | | - } |
166 | | - |
167 | | - @if not($disabled-text-color) and $box-disabled-background { |
168 | | - $disabled-text-color: adaptive-contrast(var(--box-disabled-background)); |
169 | | - } |
170 | | - |
171 | 159 | @if not($placeholder-color) and $box-background { |
172 | 160 | $placeholder-color: hsla(from adaptive-contrast(var(--box-background)) h s l / 0.9); |
173 | 161 | } |
|
219 | 207 | @if not($input-suffix-color--focused) and $box-background-focus { |
220 | 208 | $input-suffix-color--focused: adaptive-contrast(var(--box-background-focus)); |
221 | 209 | } |
| 210 | + |
| 211 | + @if $box-background != transparent { |
| 212 | + @if not($box-disabled-background) and $box-background { |
| 213 | + $box-disabled-background: hsla(from var(--box-background) h s l / 0.4); |
| 214 | + } |
| 215 | + |
| 216 | + @if not($disabled-placeholder-color) and $box-disabled-background { |
| 217 | + $disabled-placeholder-color: adaptive-contrast(var(--box-disabled-background)); |
| 218 | + } |
| 219 | + |
| 220 | + @if not($disabled-text-color) and $box-disabled-background { |
| 221 | + $disabled-text-color: adaptive-contrast(var(--box-disabled-background)); |
| 222 | + } |
| 223 | + } @else { |
| 224 | + @if not($box-disabled-background) and $box-background { |
| 225 | + $box-disabled-background: var(--box-background); |
| 226 | + } |
| 227 | + |
| 228 | + @if not($disabled-placeholder-color) and $placeholder-color { |
| 229 | + $disabled-placeholder-color: hsla(from var(--placeholder-color) h s l / 0.7); |
| 230 | + } |
| 231 | + |
| 232 | + @if not($disabled-text-color) and $idle-text-color { |
| 233 | + $disabled-text-color: hsla(from var(--idle-text-color) h s l / 0.7); |
| 234 | + } |
| 235 | + } |
222 | 236 | } |
223 | 237 |
|
224 | 238 | @if $variant == 'fluent' or $variant == 'bootstrap' { |
|
356 | 370 | @if not($disabled-text-color) and $search-disabled-background { |
357 | 371 | $disabled-text-color: adaptive-contrast(var(--search-disabled-background)); |
358 | 372 | } |
| 373 | + } @else { |
| 374 | + @if not($search-disabled-background) and $search-background { |
| 375 | + $search-disabled-background: var(--search-background); |
| 376 | + } |
| 377 | + |
| 378 | + @if not($disabled-placeholder-color) and $placeholder-color { |
| 379 | + $disabled-placeholder-color: hsla(from var(--placeholder-color) h s l / 0.7); |
| 380 | + } |
| 381 | + |
| 382 | + @if not($disabled-text-color) and $idle-text-color { |
| 383 | + $disabled-text-color: hsla(from var(--idle-text-color) h s l / 0.7); |
| 384 | + } |
359 | 385 | } |
360 | 386 |
|
361 | 387 | @if not($search-resting-shadow) { |
|
0 commit comments