Skip to content

Commit

Permalink
[MA-33]: Added aria-live to empty result messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SaurabhSharma-884 committed Jan 2, 2025
1 parent 3c88f66 commit bc4fd9d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ const SearchResults: React.FC<Props> = (props: Props): JSX.Element => {
'sidebar--right__subheader a11y__section',
{'sidebar-expanded': isSideBarExpanded},
])}
aria-live='polite'
>
<NoResultsIndicator
style={{padding: '48px'}}
Expand All @@ -307,6 +308,7 @@ const SearchResults: React.FC<Props> = (props: Props): JSX.Element => {
'sidebar--right__subheader a11y__section',
{'sidebar-expanded': isSideBarExpanded},
])}
aria-live='polite'
>
<NoResultsIndicator
style={{padding: '48px'}}
Expand Down Expand Up @@ -408,7 +410,6 @@ const SearchResults: React.FC<Props> = (props: Props): JSX.Element => {
>
<div
id='search-items-container'
role='application'
className={classNames([
'search-items-container post-list__table a11y__region',
{
Expand Down

0 comments on commit bc4fd9d

Please sign in to comment.