Skip to content

Commit b755caf

Browse files
committed
Use standard sr-only CSS class for hiding ARIA message areas
1 parent 72b34a2 commit b755caf

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

packages/he-tree-vue/src/components/BaseTree.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@
7373
<slot name="append" :tree="self"></slot>
7474
<div
7575
v-if="liveAnnouncement != null"
76-
class="he-tree-sr-only"
76+
class="sr-only"
7777
aria-live="polite"
7878
aria-atomic="true"
7979
>{{ liveAnnouncement }}</div>
8080
<div
8181
v-if="i18n?.instructions"
8282
:id="ariaInstructionsId"
83-
class="he-tree-sr-only"
83+
class="sr-only"
8484
>{{ i18n.instructions }}</div>
8585
</template>
8686
</VirtualList>
@@ -502,14 +502,15 @@ function reactiveFirstArg(func: any) {
502502
width: 100%;
503503
}
504504
505-
.he-tree-sr-only {
505+
.sr-only {
506506
position: absolute;
507507
width: 1px;
508508
height: 1px;
509509
padding: 0;
510510
margin: -1px;
511511
overflow: hidden;
512512
clip: rect(0, 0, 0, 0);
513+
clip-path: inset(50%);
513514
white-space: nowrap;
514515
border: 0;
515516
}

packages/he-tree-vue/style/default.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)