Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/edit-room-info-multiselect-aria-label.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Adds an accessible label to the system-messages multi-select in the channel edit panel so screen readers announce its purpose.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const removeSystemMessageChip = async (translationKey: string) => {
};

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

const listboxes = await screen.findAllByRole('listbox', { hidden: true });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ const EditRoomInfo = ({ room, onClickClose, onClickBack }: EditRoomInfoProps) =>
options={sysMesOptions}
disabled={!hideSysMes || isFederated}
placeholder={t('Select_messages_to_hide')}
aria-label={t('Select_messages_to_hide')}
/>
)}
/>
Expand Down
Loading