fix(input, textarea): disabled state is applied when true (#26892)
resolves #26881
@ -37,7 +37,7 @@
|
||||
// Input - Disabled
|
||||
// ----------------------------------------------------------------
|
||||
:host(.legacy-input) .native-input[disabled],
|
||||
:host([disabled]) {
|
||||
:host(.input-disabled) {
|
||||
opacity: #{$input-md-disabled-opacity};
|
||||
}
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@
|
||||
|
||||
|
||||
:host(.legacy-input) .native-input[disabled],
|
||||
:host([disabled]) {
|
||||
:host(.input-disabled) {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
|
||||
@ -649,6 +649,7 @@ export class Input implements ComponentInterface {
|
||||
[`input-label-placement-${labelPlacement}`]: true,
|
||||
'in-item': inItem,
|
||||
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
||||
'input-disabled': disabled,
|
||||
})}
|
||||
>
|
||||
<label class="input-wrapper">
|
||||
|
||||
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
@ -171,7 +171,7 @@
|
||||
}
|
||||
|
||||
:host(.legacy-textarea) .native-textarea[disabled],
|
||||
:host([disabled]) {
|
||||
:host(.textarea-disabled) {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
|
||||
@ -636,6 +636,7 @@ Developers can use the "legacy" property to continue using the legacy form marku
|
||||
[`textarea-fill-${fill}`]: fill !== undefined,
|
||||
[`textarea-shape-${shape}`]: shape !== undefined,
|
||||
[`textarea-label-placement-${labelPlacement}`]: true,
|
||||
'textarea-disabled': disabled,
|
||||
})}
|
||||
>
|
||||
<label class="textarea-wrapper">
|
||||
|
||||