diff --git a/src/runtime/components/Slider.vue b/src/runtime/components/Slider.vue index 76fcbb76ee..2286ac7fd5 100644 --- a/src/runtime/components/Slider.vue +++ b/src/runtime/components/Slider.vue @@ -128,9 +128,9 @@ function onChange(value: any) { disable-closing-trigger v-bind="(typeof tooltip === 'object' ? tooltip : {})" > - + - + diff --git a/test/components/Slider.spec.ts b/test/components/Slider.spec.ts index 7b724edd8c..b2f0274193 100644 --- a/test/components/Slider.spec.ts +++ b/test/components/Slider.spec.ts @@ -41,17 +41,7 @@ describe('Slider', () => { } }) - expect(await axe(wrapper.element, { - rules: { - // "ARIA input fields must have an accessible name (aria-input-field-name)" - - // Fix any of the following: - // aria-label attribute does not exist or is empty - // aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty - // Element has no title attribute - 'aria-input-field-name': { enabled: false } - } - })).toHaveNoViolations() + expect(await axe(wrapper.element)).toHaveNoViolations() }) describe('emits', () => { diff --git a/test/components/__snapshots__/Slider-vue.spec.ts.snap b/test/components/__snapshots__/Slider-vue.spec.ts.snap index 52ea804a2f..3f8f615536 100644 --- a/test/components/__snapshots__/Slider-vue.spec.ts.snap +++ b/test/components/__snapshots__/Slider-vue.spec.ts.snap @@ -1,97 +1,97 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Slider > renders with ariaLabel correctly 1`] = ` -" +" " `; exports[`Slider > renders with as correctly 1`] = ` -"
+"
" `; exports[`Slider > renders with class correctly 1`] = ` -" +" " `; exports[`Slider > renders with color neutral correctly 1`] = ` -" +" " `; exports[`Slider > renders with defaultValue correctly 1`] = ` -" +" " `; exports[`Slider > renders with disabled correctly 1`] = ` -" +" " `; exports[`Slider > renders with inverted correctly 1`] = ` -" +" " `; exports[`Slider > renders with min max step correctly 1`] = ` -" +" " `; exports[`Slider > renders with min steps between thumbs correctly 1`] = ` -" +" " `; exports[`Slider > renders with modelValue correctly 1`] = ` -" +" " `; exports[`Slider > renders with multiple thumbs correctly 1`] = ` -" +" " `; exports[`Slider > renders with name correctly 1`] = ` -" +" " `; exports[`Slider > renders with orientation vertical correctly 1`] = ` -" +" " `; exports[`Slider > renders with size lg correctly 1`] = ` -" +" " `; exports[`Slider > renders with size md correctly 1`] = ` -" +" " `; exports[`Slider > renders with size sm correctly 1`] = ` -" +" " `; exports[`Slider > renders with size xl correctly 1`] = ` -" +" " `; exports[`Slider > renders with size xs correctly 1`] = ` -" +" " `; exports[`Slider > renders with ui correctly 1`] = ` -" +" " `; diff --git a/test/components/__snapshots__/Slider.spec.ts.snap b/test/components/__snapshots__/Slider.spec.ts.snap index 52ea804a2f..3f8f615536 100644 --- a/test/components/__snapshots__/Slider.spec.ts.snap +++ b/test/components/__snapshots__/Slider.spec.ts.snap @@ -1,97 +1,97 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Slider > renders with ariaLabel correctly 1`] = ` -" +" " `; exports[`Slider > renders with as correctly 1`] = ` -"
+"
" `; exports[`Slider > renders with class correctly 1`] = ` -" +" " `; exports[`Slider > renders with color neutral correctly 1`] = ` -" +" " `; exports[`Slider > renders with defaultValue correctly 1`] = ` -" +" " `; exports[`Slider > renders with disabled correctly 1`] = ` -" +" " `; exports[`Slider > renders with inverted correctly 1`] = ` -" +" " `; exports[`Slider > renders with min max step correctly 1`] = ` -" +" " `; exports[`Slider > renders with min steps between thumbs correctly 1`] = ` -" +" " `; exports[`Slider > renders with modelValue correctly 1`] = ` -" +" " `; exports[`Slider > renders with multiple thumbs correctly 1`] = ` -" +" " `; exports[`Slider > renders with name correctly 1`] = ` -" +" " `; exports[`Slider > renders with orientation vertical correctly 1`] = ` -" +" " `; exports[`Slider > renders with size lg correctly 1`] = ` -" +" " `; exports[`Slider > renders with size md correctly 1`] = ` -" +" " `; exports[`Slider > renders with size sm correctly 1`] = ` -" +" " `; exports[`Slider > renders with size xl correctly 1`] = ` -" +" " `; exports[`Slider > renders with size xs correctly 1`] = ` -" +" " `; exports[`Slider > renders with ui correctly 1`] = ` -" +" " `;