mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
fix(Skeleton): improve accessibility (#3613)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -29,7 +29,14 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.skeleton ||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Primitive :as="as" :class="ui({ class: props.class })">
|
||||
<Primitive
|
||||
:as="as"
|
||||
aria-busy="true"
|
||||
aria-label="loading"
|
||||
aria-live="polite"
|
||||
role="alert"
|
||||
:class="ui({ class: props.class })"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user