MOBILE-3833 a11y: Add missing lists

This is still not completely accessible, but it is a good idea to use lists properly in case https://github.com/ionic-team/ionic-framework/issues/19939 gets solved
main
Noel De Martin 2021-09-08 17:43:59 +02:00
parent 255f3048a2
commit 5396bb6a71
6 changed files with 312 additions and 301 deletions

View File

@ -10,6 +10,7 @@
</ion-header>
<ion-content>
<ion-list>
<ion-item class="ion-text-wrap">
<ion-label><h2>{{ appName }} {{ versionName }}</h2></ion-label>
</ion-item>
@ -39,4 +40,5 @@
<ion-icon name="fas-bullhorn" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.helpusimprove' | translate }}</ion-label>
</ion-item>
</ion-list>
</ion-content>

View File

@ -15,6 +15,7 @@
</ion-header>
<ion-content>
<ion-list>
<ion-item (longPress)="copyItemInfo($event)">
<ion-label class="ion-text-wrap">
<h2>{{ 'core.settings.appversion' | translate}}</h2>
@ -139,4 +140,5 @@
<p>{{ 'core.' + deviceInfo.localNotifAvailable | translate }}</p>
</ion-label>
</ion-item>
</ion-list>
</ion-content>

View File

@ -8,6 +8,7 @@
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-item class="ion-text-wrap">
<ion-label>
<h2>{{ 'core.settings.language' | translate }}</h2>
@ -77,4 +78,5 @@
</ion-label>
<ion-toggle [(ngModel)]="analyticsEnabled" (ionChange)="analyticsEnabledChanged()"></ion-toggle>
</ion-item>
</ion-list>
</ion-content>

View File

@ -9,6 +9,7 @@
</ion-header>
<ion-content>
<core-loading [hideUntil]="loaded">
<ion-list>
<ion-item button *ngIf="error" class="ion-text-wrap" [href]="licensesUrl" core-link auto-login="no">
<ion-label>
{{ 'core.settings.opensourcelicenses' | translate }}
@ -16,7 +17,6 @@
<ion-button [href]="licensesUrl" target="_blank" fill="clear" slot="end" core-link auto-login="no">
{{ 'core.view' | translate }}</ion-button>
</ion-item>
<ng-container *ngIf="!error">
<ion-item *ngFor="let license of licenses" class="ion-text-wrap">
<ion-label>
@ -37,5 +37,6 @@
fill="clear" slot="end" core-link auto-login="no">{{ 'core.view' | translate }}</ion-button>
</ion-item>
</ng-container>
</ion-list>
</core-loading>
</ion-content>

View File

@ -18,6 +18,7 @@
<ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
</ion-refresher>
<core-loading [hideUntil]="loaded">
<ion-list>
<ion-item *ngFor="let site of sites" [attr.aria-current]="site.id == currentSiteId ? 'page' : 'false'">
<ion-label class="ion-text-wrap">
<p class="item-heading">
@ -43,5 +44,6 @@
{{ totals.spaceUsage | coreBytesToSize }}
</p>
</ion-item-divider>
</ion-list>
</core-loading>
</ion-content>

View File

@ -15,6 +15,7 @@
</ion-header>
<ion-content>
<core-loading [hideUntil]="sitesLoaded">
<ion-list>
<ion-item-divider>
<ion-label>
<h2>{{ 'core.settings.syncsettings' | translate }}</h2>
@ -45,5 +46,6 @@
</ion-button>
</core-button-with-spinner>
</ion-item>
</ion-list>
</core-loading>
</ion-content>