Skip to content

Commit 8df50f4

Browse files
committed
fix(select): use aria description for selected option
1 parent d5197be commit 8df50f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/components/select/select.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,7 @@ export class Select implements ComponentInterface {
566566
handler: () => {
567567
this.setValue(value);
568568
},
569-
htmlAttributes: {
570-
'aria-selected': isSelected ? 'true' : undefined,
571-
},
569+
...(isSelected ? { htmlAttributes: { 'aria-description': 'selected' } } : {}),
572570
} as ActionSheetButton;
573571
});
574572

0 commit comments

Comments
 (0)