|
220 | 220 | .spectrum-Popover.is-open {
|
221 | 221 | transform: translateY(var(--mod-combobox-spacing-edge-to-menu, var(--spectrum-combobox-spacing-edge-to-menu)));
|
222 | 222 | }
|
| 223 | + |
| 224 | + &.is-readOnly .spectrum-Combobox-textfield { |
| 225 | + input:read-only { |
| 226 | + background-color: var(--spectrum-combobox-readonly-input-background-color); |
| 227 | + border-color: var(--spectrum-combobox-readonly-input-border-color); |
| 228 | + |
| 229 | + &:hover { |
| 230 | + background-color: revert; |
| 231 | + } |
| 232 | + } |
| 233 | + |
| 234 | + &.is-invalid input:read-only { |
| 235 | + border-color: var(--highcontrast-textfield-border-color-invalid-default, var(--mod-textfield-border-color-invalid-default, var(--spectrum-combobox-readonly-border-color-invalid-default))); |
| 236 | + } |
| 237 | + |
| 238 | + &.is-disabled input:read-only { |
| 239 | + background-color: var(--mod-textfield-background-color-disabled, var(--spectrum-combobox-readonly-background-color-disabled)); |
| 240 | + border-color: transparent; |
| 241 | + color: var(--highcontrast-textfield-text-color-disabled, var(--mod-textfield-text-color-disabled, var(--spectrum-combobox-readonly-text-color-disabled))); |
| 242 | + } |
| 243 | + } |
223 | 244 | }
|
224 | 245 |
|
225 | 246 | /* LOADING INDICATOR */
|
|
321 | 342 | font-size: var(--mod-combobox-font-size, var(--spectrum-combobox-font-size));
|
322 | 343 | font-style: var(--mod-combobox-font-style, var(--spectrum-combobox-font-style));
|
323 | 344 |
|
324 |
| - |
325 |
| - |
326 | 345 | &::placeholder {
|
327 | 346 | --mod-textfield-text-color-default: var(--mod-combobox-font-color-placeholder);
|
328 | 347 | }
|
|
378 | 397 | }
|
379 | 398 | }
|
380 | 399 |
|
381 |
| -/* Combobox Read-only */ |
382 |
| -.spectrum-Textfield.is-readOnly { |
383 |
| - input:read-only { |
384 |
| - background-color: var(--spectrum-combobox-readonly-input-background-color); |
385 |
| - border-color: var(--spectrum-combobox-readonly-input-border-color); |
386 |
| - |
387 |
| - &:hover { |
388 |
| - background-color: revert; |
389 |
| - border-color: revert; |
390 |
| - } |
391 |
| - } |
392 |
| - |
393 |
| - &.is-invalid input:read-only { |
394 |
| - border-color: var(--highcontrast-textfield-border-color-invalid-default, var(--mod-textfield-border-color-invalid-default, var(--spectrum-combobox-readonly-border-color-invalid-default))); |
395 |
| - } |
396 |
| - |
397 |
| - &.is-disabled input:read-only { |
398 |
| - background-color: var(--mod-textfield-background-color-disabled, var(--spectrum-combobox-readonly-background-color-disabled)); |
399 |
| - border-color: transparent; |
400 |
| - color: var(--highcontrast-textfield-text-color-disabled, var(--mod-textfield-text-color-disabled, var(--spectrum-combobox-readonly-text-color-disabled))); |
401 |
| - } |
402 |
| - |
403 |
| - &.spectrum-Textfield--quiet { |
404 |
| - input:read-only { |
405 |
| - background-color: unset; |
406 |
| - border-color: unset; |
407 |
| - } |
408 |
| - |
409 |
| - &.is-invalid input:read-only { |
410 |
| - border-color: var(--highcontrast-textfield-border-color-invalid-default, var(--mod-textfield-border-color-invalid-default, var(--spectrum-combobox-readonly-border-color-invalid-default))); |
411 |
| - } |
412 |
| - } |
413 |
| -} |
414 |
| - |
415 | 400 | /* QUIET VARIATION (no visible background) */
|
416 |
| -/* stylelint-disable-next-line no-duplicate-selectors -- Combobox quiet variation and mods */ |
417 | 401 | .spectrum-Combobox--quiet {
|
418 | 402 | border-radius: 0;
|
419 | 403 |
|
420 | 404 | .spectrum-Combobox-textfield {
|
421 | 405 | &.is-invalid .spectrum-Textfield-validationIcon {
|
422 | 406 | inset-inline-end: var(--mod-combobox-button-width, var(--spectrum-combobox-button-width));
|
423 | 407 | }
|
| 408 | + |
| 409 | + &.spectrum-Textfield--quiet { |
| 410 | + input:read-only { |
| 411 | + background-color: unset; |
| 412 | + border-color: unset; |
| 413 | + } |
| 414 | + |
| 415 | + input:read-only:hover { |
| 416 | + background-color: unset; |
| 417 | + border-color: unset; |
| 418 | + } |
| 419 | + |
| 420 | + &.is-invalid input:read-only { |
| 421 | + border-color: var(--highcontrast-textfield-border-color-invalid-default, var(--mod-textfield-border-color-invalid-default, var(--spectrum-combobox-readonly-border-color-invalid-default))); |
| 422 | + } |
| 423 | + } |
424 | 424 | }
|
425 | 425 |
|
426 | 426 | .spectrum-Combobox-input {
|
|
0 commit comments