mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
refactor(item): remove deprecated apis (#29102)
BREAKING CHANGE: - The `helper` slot has been removed. Developers should use the `helperText` property on `ion-input` and `ion-textarea`. - The `error` slot has been removed. Developers should use the `errorText` property on `ion-input` and `ion-textarea`. - Counter functionality has been removed including the `counter` and `counterFormatter` properties. Developers should use the properties of the same name on `ion-input` and `ion-textarea`. - The `fill` property has been removed. Developers should use the property of the same name on `ion-input`, `ion-select`, and `ion-textarea`. - The `shape` property has been removed. Developers should use the property of the same name on `ion-input`, `ion-select`, and `ion-textarea`.
This commit is contained in:
@ -16,13 +16,6 @@
|
||||
font-size: $textarea-ios-font-size;
|
||||
}
|
||||
|
||||
:host-context(.item-label-stacked),
|
||||
:host-context(.item-label-floating) {
|
||||
--padding-top: 8px;
|
||||
--padding-bottom: 8px;
|
||||
--padding-start: 0px;
|
||||
}
|
||||
|
||||
// Textarea - Disabled
|
||||
// ----------------------------------------------------------------
|
||||
// The textarea, label, helper text, char counter and placeholder
|
||||
|
||||
@ -116,10 +116,6 @@
|
||||
align-self: baseline;
|
||||
}
|
||||
|
||||
:host-context(ion-item:not(.item-label)) {
|
||||
--padding-start: 0;
|
||||
}
|
||||
|
||||
:host-context(ion-item)[slot="start"],
|
||||
:host-context(ion-item)[slot="end"] {
|
||||
width: auto;
|
||||
@ -238,20 +234,6 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// Item Floating: Placeholder
|
||||
// ----------------------------------------------------------------
|
||||
// When used with a floating item the placeholder should hide
|
||||
|
||||
:host-context(.item-label-floating.item-has-placeholder:not(.item-has-value)) {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
:host-context(.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus) {
|
||||
transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
// Textarea Wrapper
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user