[MM-63027] Allow results to be read on filter without search term (#33625)

* [MM-63027] Allow results to be read on filter without search term

* Fix snap
This commit is contained in:
Devin Binnie
2025-08-08 13:15:24 +00:00
committed by GitHub
parent cb021357a2
commit 0e39bbe675
2 changed files with 14 additions and 9 deletions
@@ -34,6 +34,13 @@ exports[`components/SearchableChannelList should match init snapshot 1`] = `
>
0 Results
</span>
<span
aria-live="polite"
className="sr-only"
role="status"
>
0 Results
</span>
<div
id="modalPreferenceContainer"
>
@@ -594,15 +594,13 @@ export class SearchableChannelList extends React.PureComponent<Props, State> {
const dropDownContainer = (
<div className='more-modal__dropdown'>
<span id='channelCountLabel'>{channelCountLabel}</span>
{this.props.isSearch &&
<span
className='sr-only'
role='status'
aria-live='polite'
>
{channelCountLabel}
</span>
}
<span
className='sr-only'
role='status'
aria-live='polite'
>
{channelCountLabel}
</span>
<div id='modalPreferenceContainer'>
{channelDropdown}
{hideJoinedPreferenceCheckbox}