Skip to content

Commit 42330e9

Browse files
authored
Clean up commented code in use-announcement.ts
Removed commented-out code related to default renderer and announcements.
1 parent 10e89c8 commit 42330e9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/select/utils/use-announcement.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,3 @@ export function useAnnouncement<Option extends OptionHolder>({
6363
return [selectedAnnouncement, defaultDescription].filter(Boolean).join(' ');
6464
}
6565

66-
// // Use default renderer. Selection state is communicated via aria-selected/aria-checked attributes,
67-
// // not through the accessible name or live region announcements.
68-
// const defaultDescription = defaultOptionDescription({ option, parentGroup: group, highlightText });
69-
// return defaultDescription;
70-
// }

0 commit comments

Comments
 (0)