[MA-33]: Added aria-live to empty result messages (#29814)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
54207acd6a
Коммит
f6a2f00fdb
@@ -292,6 +292,7 @@ const SearchResults: React.FC<Props> = (props: Props): JSX.Element => {
|
|||||||
'sidebar--right__subheader a11y__section',
|
'sidebar--right__subheader a11y__section',
|
||||||
{'sidebar-expanded': isSideBarExpanded},
|
{'sidebar-expanded': isSideBarExpanded},
|
||||||
])}
|
])}
|
||||||
|
aria-live='polite'
|
||||||
>
|
>
|
||||||
<NoResultsIndicator
|
<NoResultsIndicator
|
||||||
style={{padding: '48px'}}
|
style={{padding: '48px'}}
|
||||||
@@ -307,6 +308,7 @@ const SearchResults: React.FC<Props> = (props: Props): JSX.Element => {
|
|||||||
'sidebar--right__subheader a11y__section',
|
'sidebar--right__subheader a11y__section',
|
||||||
{'sidebar-expanded': isSideBarExpanded},
|
{'sidebar-expanded': isSideBarExpanded},
|
||||||
])}
|
])}
|
||||||
|
aria-live='polite'
|
||||||
>
|
>
|
||||||
<NoResultsIndicator
|
<NoResultsIndicator
|
||||||
style={{padding: '48px'}}
|
style={{padding: '48px'}}
|
||||||
@@ -408,7 +410,6 @@ const SearchResults: React.FC<Props> = (props: Props): JSX.Element => {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
id='search-items-container'
|
id='search-items-container'
|
||||||
role='application'
|
|
||||||
className={classNames([
|
className={classNames([
|
||||||
'search-items-container post-list__table a11y__region',
|
'search-items-container post-list__table a11y__region',
|
||||||
{
|
{
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user