Skip to content

Commit 3cba6e0

Browse files
committed
feat: add aria label to selects
1 parent 7f0287a commit 3cba6e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,6 +2260,7 @@ describe('component accessibility audits', () => {
22602260
it('should have no accessibility violations with size small', async () => {
22612261
const component = await mountSuspended(SelectBase, {
22622262
props: { size: 'sm' },
2263+
attrs: { 'aria-label': 'Small select' },
22632264
slots: { default: '<option value="option1">option 1</option>' },
22642265
})
22652266
const results = await runAxe(component)
@@ -2300,6 +2301,7 @@ describe('component accessibility audits', () => {
23002301
const component = await mountSuspended(SelectField, {
23012302
props: {
23022303
id: 'a11y-select-3',
2304+
attrs: { 'aria-label': 'Disabled select' },
23032305
items: [{ label: 'Option 1', value: 'option1' }],
23042306
disabled: true,
23052307
},
@@ -2312,6 +2314,7 @@ describe('component accessibility audits', () => {
23122314
const component = await mountSuspended(SelectField, {
23132315
props: {
23142316
id: 'a11y-select-4',
2317+
attrs: { 'aria-label': 'Small select' },
23152318
items: [{ label: 'Option 1', value: 'option1' }],
23162319
size: 'sm',
23172320
},

0 commit comments

Comments
 (0)