forked from extern/egroupware
Allow actually disabled inputs
This commit is contained in:
parent
272b63d32e
commit
9ce0520e5c
@ -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;
|
||||
}
|
||||
`
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user