Hello team!
Submitting my Angular 15 + Ionic 6.20.1 app for pre-launch review in the Google Console, I received a pre-launch report with 35 Touch target size issues and 9 Low color contrast issues.
In particular, I’m curious about the 35 Touch target size issues, however classified as minor issues, as these are totally controlled by Ionic and I would not expect these to be misaligned with Google recommendations.
Example of such issues:
Recommendation
Consider making this clickable item larger.
This item's size is 32dp x 32dp. Consider making this touch target 48dp wide and 48dp high or larger. This item originates from web content, and additional verification of touch target size is recommended.
This is a standard input control of Ionic, generated with this code:
<ion-item class="input-item input-item-text">
<ion-input label="Name" labelPlacement="floating" type="text" formControlName="name" autofocus="true" clearInput #userName></ion-input>
</ion-item>
Another example:
Recommendation
Consider making this clickable item larger.
This item's height is 36dp. Consider making the height of this touch target 48dp or larger. This item originates from web content, and additional verification of touch target size is recommended.
This Select drop-down is generated with this code:
<ion-item class="input-item input-item-text item-label-floating">
<ion-label position="floating">Country</ion-label>
<ion-select formControlName="country" placeholder="Select your country" interface="popover"
cancelText="Cancel" okText="OK" (ionChange)="onCountryChange($event)">
<ion-select-option *ngFor="let item of countries" [value]="item" class="alert-radio-label">{{item.name}}
</ion-select-option>
</ion-select>
<ion-thumbnail slot="end">
<ion-img [src]='selectedCountryFlag' style="width: 16px;height:11px; margin-top:70%; margin-left:70%;">
</ion-img>
</ion-thumbnail>
</ion-item>
Another example:
Recommendation
Consider making this clickable item larger.
This item's height is 45dp. Consider making the height of this touch target 48dp or larger. This item originates from web content, and additional verification of touch target size is recommended.
Another example:
Consider making this clickable item larger.
This item's size is 40dp x 34dp. Consider making this touch target 48dp wide and 48dp high or larger. This item originates from web content, and additional verification of touch target size is recommended.
This last example is generated by this code:
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-button (click)="navigateBack()">
<ion-icon name="chevron-back-outline" slot="icon-only"></ion-icon>
</ion-button>
</ion-buttons>
<ion-title>{{this.pageTitle}}</ion-title>
</ion-toolbar>
</ion-header>
As you can see, this is standard Ionic use of the back button element.
Please advise why are these issues being raised and what can I do (if at all on my end) to fix?