Allow actually disabled inputs

This commit is contained in:
nathan 2022-12-16 10:40:58 -07:00
parent 272b63d32e
commit 9ce0520e5c

View File

@ -65,18 +65,24 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
return [
...super.styles,
css`
/* Needed so required can show through */
::slotted(input), input {
background-color: transparent;
}
/* Used to allow auto-sizing on slotted inputs */
.input-group__container > .input-group__input ::slotted(.form-control) {
width: 100%;
}
.form-field__feedback {
position: relative;
}
/* Allow actually disabled inputs */
:host([disabled]) {
display: initial;
}
/* Needed so required can show through */
::slotted(input), input {
background-color: transparent;
}
/* Used to allow auto-sizing on slotted inputs */
.input-group__container > .input-group__input ::slotted(.form-control) {
width: 100%;
}
.form-field__feedback {
position: relative;
}
`
];
}