Skip to content

Commit c852b0d

Browse files
committed
up
1 parent 0fae890 commit c852b0d

File tree

4 files changed

+41
-51
lines changed

4 files changed

+41
-51
lines changed

src/runtime/components/Slider.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ function onChange(value: any) {
127127
disable-closing-trigger
128128
v-bind="(typeof tooltip === 'object' ? tooltip : {})"
129129
>
130-
<SliderThumb :class="ui.thumb({ class: props.ui?.thumb })" />
130+
<SliderThumb :class="ui.thumb({ class: props.ui?.thumb })" :aria-label="`Thumb ${thumb} of ${thumbs}`" />
131131
</UTooltip>
132-
<SliderThumb v-else :class="ui.thumb({ class: props.ui?.thumb })" />
132+
<SliderThumb v-else :class="ui.thumb({ class: props.ui?.thumb })" :aria-label="`Thumb ${thumb} of ${thumbs}`" />
133133
</template>
134134
</SliderRoot>
135135
</template>

test/components/Slider.spec.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,7 @@ describe('Slider', () => {
4141

4242
}
4343
})
44-
expect(await axe(wrapper.element, {
45-
rules: {
46-
// "ARIA input fields must have an accessible name (aria-input-field-name)"
47-
48-
// Fix any of the following:
49-
// aria-label attribute does not exist or is empty
50-
// aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
51-
// Element has no title attribute
52-
'aria-input-field-name': { enabled: false }
53-
}
54-
})).toHaveNoViolations()
44+
expect(await axe(wrapper.element)).toHaveNoViolations()
5545
})
5646

5747
describe('emits', () => {

0 commit comments

Comments
 (0)