Merged in fix/SW-2188-disabled-state (pull request #2597)
fix(SW-2188): readonly for input fields * fix(SW-2188): readonly for input fields Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -13,12 +13,14 @@
|
||||
box-sizing: border-box;
|
||||
cursor: text;
|
||||
|
||||
&:has(.input:focus) {
|
||||
.container:has(.input:focus):not(:has(.input:disabled)),
|
||||
.container:has(.input:focus):not(:has(.input:read-only)) {
|
||||
outline-offset: -2px;
|
||||
outline: 2px solid var(--Border-Interactive-Focus);
|
||||
}
|
||||
|
||||
&:has(.input:disabled) {
|
||||
&:has(.input:disabled),
|
||||
&:has(.input:read-only) {
|
||||
background-color: var(--Surface-Primary-Disabled);
|
||||
border: transparent;
|
||||
cursor: unset;
|
||||
@@ -50,8 +52,10 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
&:disabled,
|
||||
&:read-only {
|
||||
color: var(--Text-Interactive-Disabled);
|
||||
cursor: unset;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user