mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
fix(many): legacy form control does not warn when using aria-labelledby (#26699)
resolves #26698
This commit is contained in:
@ -280,7 +280,10 @@ export class Checkbox implements ComponentInterface {
|
||||
printIonWarning(
|
||||
`Using ion-checkbox with an ion-label has been deprecated. To migrate, remove the ion-label and pass your label directly into ion-checkbox instead.
|
||||
Example: <ion-checkbox>Label</ion-checkbox>
|
||||
For checkboxes that do not have a visible label, developers should use "aria-label" so screen readers can announce the purpose of the checkbox.`,
|
||||
|
||||
For checkboxes that do not have a visible label, developers should use "aria-label" so screen readers can announce the purpose of the checkbox.
|
||||
|
||||
For checkboxes that do not render the label immediately next to the checkbox, developers may continue to use "ion-label" but must manually associate the label with the checkbox by using "aria-labelledby".`,
|
||||
this.el
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user