Skip to content

feat: Ionic v7 Support errorText and helperText across all inputs #27078

@JEVietti

Description

@JEVietti

Prerequisites

Describe the Feature Request

With ion-item slot error and helper being deprecated for v7, I'd like to ask for support to be made across all input types not just ion-input and ion-textarea. Including: ion-select and ion-checkbox

Also it would be nice if out of the box the padding/margin is configured so the item doesn't shift that page down when errorText appears that doesn't include helper text.

Describe the Use Case

Use ion-select inside of forms with error messages just like ion-input and ion-textarea

Describe Preferred Solution

Add errorText and helperText properties across all input types such as: ion-select, ion-checkbox, and any other input fields to match functionality with ion-item error and helper slot.

Describe Alternatives

Remove ion-note slot "error" and "helper" deprecation, as they are far more configurable and powerful than the errorText and helperText properties.

Related Code

<ion-item> <ion-label position="floating">Test</ion-label> <ion-select formControlName="test"> <ion-select-option [value]="null">Select</ion-select-option> </ion-select> <ion-note slot="helper"> Helper Text </ion-note> <ion-note slot="error"> Error Text </ion-note> </ion-item>

Additional Information

https://ionicframework.com/docs/api/item

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: replythe issue needs a response from the user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions