Skip to content

Commit

Permalink
fix: aria orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Jul 6, 2023
1 parent 404e9bd commit 1ea16b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/divider/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ function draw(rc: RoughSVG, svg: SVGSVGElement) {
</script>

<template>
<span :class="['r-divider', { 'is-vertical': vertical }]" role="separator">
<span
:class="['r-divider', { 'is-vertical': vertical }]"
role="separator"
:aria-orientation="vertical ? 'vertical' : 'horizontal'"
>
<RGraphics @draw="draw" />
</span>
</template>
Expand Down

0 comments on commit 1ea16b5

Please sign in to comment.