Skip to content

Commit

Permalink
fix(VSkeletonLoader): apply aria-label for sr
Browse files Browse the repository at this point in the history
fixes #10999
  • Loading branch information
johnleider committed Apr 3, 2023
1 parent 8253c7e commit 35cf624
Show file tree
Hide file tree
Showing 43 changed files with 50 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export default mixins(
props: {
boilerplate: Boolean,
loading: Boolean,
loadingText: {
type: String,
default: '$vuetify.loading',
},
tile: Boolean,
transition: String,
type: String,
Expand All @@ -46,9 +50,10 @@ export default mixins(
if (!this.isLoading) return this.$attrs

return !this.boilerplate ? {
'aria-busy': true,
'aria-live': 'polite',
role: 'alert',
'aria-busy': !this.boilerplate ? true : undefined,
'aria-live': !this.boilerplate ? 'polite' : undefined,
'aria-label': !this.boilerplate ? this.$vuetify.lang.t(this.loadingText) : undefined,
role: !this.boilerplate ? 'alert' : undefined,
...this.$attrs,
} : {}
},
Expand Down
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/af.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'القييم {0} من {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/az.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Puntuació {0} de {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/ckb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Hodnocení {0} z {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Bedømmelse {0} af {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Puntuación {0} de {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/et.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Luokitus {0}/{1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Note de {0} sur {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/he.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/hr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/hu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Valutazione {0} di {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: '評価 {1} のうち {0}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/lt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/lv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/no.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/ro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating de {0} din {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/sk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Hodnotenie {0} z {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/sl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/sr-Cyrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Оцена {0} од {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/sr-Latn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Ocena {0} od {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/sv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/th.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Đánh giá {0} trên {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/zh-Hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}
1 change: 1 addition & 0 deletions packages/vuetify/src/locale/zh-Hant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ export default {
icon: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
}

0 comments on commit 35cf624

Please sign in to comment.