Skip to content

Commit

Permalink
Fixed #3783 - Splitter: a couple of errors related to aria-* attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 27, 2023
1 parent 9f3fd58 commit 1ef494f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions components/lib/splitter/Splitter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,8 @@
<div :class="containerClass">
<template v-for="(panel, i) of panels" :key="i">
<component :is="panel" tabindex="-1"></component>
<div
v-if="i !== panels.length - 1"
class="p-splitter-gutter"
role="separator"
tabindex="-1"
@mousedown="onGutterMouseDown($event, i)"
@touchstart="onGutterTouchStart($event, i)"
@touchmove="onGutterTouchMove($event, i)"
@touchend="onGutterTouchEnd($event, i)"
>
<div class="p-splitter-gutter-handle" tabindex="0" :style="gutterStyle" :aria-orientation="layout" :aria-valuenow="prevSize" @keyup="onGutterKeyUp" @keydown="onGutterKeyDown($event, i)"></div>
<div v-if="i !== panels.length - 1" class="p-splitter-gutter" @mousedown="onGutterMouseDown($event, i)" @touchstart="onGutterTouchStart($event, i)" @touchmove="onGutterTouchMove($event, i)" @touchend="onGutterTouchEnd($event, i)">
<div class="p-splitter-gutter-handle" tabindex="0" :style="gutterStyle" role="separator" :aria-orientation="layout" :aria-valuenow="prevSize" @keyup="onGutterKeyUp" @keydown="onGutterKeyDown($event, i)"></div>
</div>
</template>
</div>
Expand Down

0 comments on commit 1ef494f

Please sign in to comment.