refactor(input): remove legacy property and support for legacy syntax #29017
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number: internal
What is the current behavior?
In Ionic Framework v7, we simplified the input syntax so that it was no longer required to be placed inside of an
ion-item
. We maintained backwards compatibility by adding alegacy
property which allowed it to continue to be styled properly when written in the following way:While this was supported in v7, console warnings were logged to notify developers that they needed to update this syntax for the best accessibility experience.
What is the new behavior?
legacy
property and support for the legacy syntax. Developers should follow the migration guide in the input documentation to update their apps. The new syntax requires alabel
oraria-label
onion-input
:input/test/legacy/
and all related screenshotsitem/test/a11y
,item/test/counter
,item/test/disabled
,item/test/highlight
,item/test/legacy/alignment
,item/test/legacy/disabled
,item/test/legacy/fill
, anditem/test/legacy/form
and all related screenshots if the test was removedDoes this introduce a breaking change?
BREAKING CHANGE:
The
legacy
property and support for the legacy syntax, which involved placing anion-input
inside of anion-item
with anion-label
, have been removed from input. For more information on migrating from the legacy input syntax, refer to the Input documentation.