Skip to content

Commit

Permalink
remove hard coded "labels"
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp committed Sep 18, 2024
1 parent 2b9c768 commit 33e8df0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/FilteredActionList/useAnnouncements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const useAnnouncements = (
const {index, text, selected} = activeItem

const announcementText = [
`Focus on filter text box and list of labels`,
`Focus on filter text box and list of items`,
`Focused item: ${text}`,
`${selected ? 'selected' : 'not selected'}`,
`${index + 1} of ${items.length}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/SelectPanel/SelectPanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ for (const useModernActionList of [false, true]) {
// we wait because announcement is intentionally updated after a timeout to not interrupt user input
await waitFor(async () => {
expect(getLiveRegion().getMessage('polite')).toBe(
'Focus on filter text box and list of labels, Focused item: item one, not selected, 1 of 3',
'Focus on filter text box and list of items, Focused item: item one, not selected, 1 of 3',
)
})
})
Expand Down

0 comments on commit 33e8df0

Please sign in to comment.