Skip to content

Commit f85a7b0

Browse files
authored
Merge branch 'develop' into ddp-streamer-improvements
2 parents 4e76fe2 + d33009a commit f85a7b0

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': patch
3+
---
4+
5+
Adds an accessible label to the system-messages multi-select in the channel edit panel so screen readers announce its purpose.

apps/meteor/client/views/room/contextualBar/Info/EditRoomInfo/EditRoomInfo.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const removeSystemMessageChip = async (translationKey: string) => {
6464
};
6565

6666
const selectSystemMessageOption = async (translationKey: string) => {
67-
const trigger = screen.getByRole('button', { name: /Select messages to hide/i });
67+
const trigger = screen.getByRole('combobox', { name: /Select messages to hide/i });
6868
await userEvent.click(trigger);
6969

7070
const listboxes = await screen.findAllByRole('listbox', { hidden: true });

apps/meteor/client/views/room/contextualBar/Info/EditRoomInfo/EditRoomInfo.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ const EditRoomInfo = ({ room, onClickClose, onClickBack }: EditRoomInfoProps) =>
483483
options={sysMesOptions}
484484
disabled={!hideSysMes || isFederated}
485485
placeholder={t('Select_messages_to_hide')}
486+
aria-label={t('Select_messages_to_hide')}
486487
/>
487488
)}
488489
/>

0 commit comments

Comments
 (0)