fix(input, textarea): disabled state is applied when true (#26892)

resolves #26881
This commit is contained in:
Liam DeBeasi
2023-03-03 10:46:59 -05:00
committed by GitHub
parent 7d9ce7420a
commit 569401b1c8
21 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@
// Input - Disabled // Input - Disabled
// ---------------------------------------------------------------- // ----------------------------------------------------------------
:host(.legacy-input) .native-input[disabled], :host(.legacy-input) .native-input[disabled],
:host([disabled]) { :host(.input-disabled) {
opacity: #{$input-md-disabled-opacity}; opacity: #{$input-md-disabled-opacity};
} }

View File

@ -158,7 +158,7 @@
:host(.legacy-input) .native-input[disabled], :host(.legacy-input) .native-input[disabled],
:host([disabled]) { :host(.input-disabled) {
opacity: 0.4; opacity: 0.4;
} }

View File

@ -649,6 +649,7 @@ export class Input implements ComponentInterface {
[`input-label-placement-${labelPlacement}`]: true, [`input-label-placement-${labelPlacement}`]: true,
'in-item': inItem, 'in-item': inItem,
'in-item-color': hostContext('ion-item.ion-color', this.el), 'in-item-color': hostContext('ion-item.ion-color', this.el),
'input-disabled': disabled,
})} })}
> >
<label class="input-wrapper"> <label class="input-wrapper">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -171,7 +171,7 @@
} }
:host(.legacy-textarea) .native-textarea[disabled], :host(.legacy-textarea) .native-textarea[disabled],
:host([disabled]) { :host(.textarea-disabled) {
opacity: 0.4; opacity: 0.4;
} }

View File

@ -636,6 +636,7 @@ Developers can use the "legacy" property to continue using the legacy form marku
[`textarea-fill-${fill}`]: fill !== undefined, [`textarea-fill-${fill}`]: fill !== undefined,
[`textarea-shape-${shape}`]: shape !== undefined, [`textarea-shape-${shape}`]: shape !== undefined,
[`textarea-label-placement-${labelPlacement}`]: true, [`textarea-label-placement-${labelPlacement}`]: true,
'textarea-disabled': disabled,
})} })}
> >
<label class="textarea-wrapper"> <label class="textarea-wrapper">