diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2022-08-09 17:25:17 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-11 20:03:47 +0000 |
commit | 3050c42b3c09f1fc9f2cdf4a5a727276c53cd57b (patch) | |
tree | 84a25ba4e05678ccaab7a0db240a194f221142cb /server/sonar-web | |
parent | 095a34a52e5917e7bc479d354821aad1ba04db91 (diff) | |
download | sonarqube-3050c42b3c09f1fc9f2cdf4a5a727276c53cd57b.tar.gz sonarqube-3050c42b3c09f1fc9f2cdf4a5a727276c53cd57b.zip |
SONAR-16731 [891631] Status message not automatically announced
Diffstat (limited to 'server/sonar-web')
4 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx b/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx index b5cde9bdd1d..11530510c6f 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx @@ -28,7 +28,7 @@ import { Query } from '../query'; export default function EmptyFavoriteSearch({ query }: { query: Query }) { return ( - <div className="empty-search"> + <div aria-live="assertive" className="empty-search"> <h3>{translate('no_results_search.favorites')}</h3> <p className="big-spacer-top"> <FormattedMessage diff --git a/server/sonar-web/src/main/js/components/common/EmptySearch.tsx b/server/sonar-web/src/main/js/components/common/EmptySearch.tsx index 801c944bd46..ff937dff01b 100644 --- a/server/sonar-web/src/main/js/components/common/EmptySearch.tsx +++ b/server/sonar-web/src/main/js/components/common/EmptySearch.tsx @@ -23,7 +23,7 @@ import './EmptySearch.css'; export default function EmptySearch() { return ( - <div className="empty-search"> + <div aria-live="assertive" className="empty-search"> <h3>{translate('no_results_search')}</h3> <p className="big-spacer-top">{translate('no_results_search.2')}</p> </div> diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/EmptySearch-test.tsx.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/EmptySearch-test.tsx.snap index 34dd6bf65a4..8e313d7b4b8 100644 --- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/EmptySearch-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/EmptySearch-test.tsx.snap @@ -2,6 +2,7 @@ exports[`renders 1`] = ` <div + aria-live="assertive" className="empty-search" > <h3> diff --git a/server/sonar-web/src/main/js/components/controls/SearchBox.tsx b/server/sonar-web/src/main/js/components/controls/SearchBox.tsx index a37029ef26c..285206bda3e 100644 --- a/server/sonar-web/src/main/js/components/controls/SearchBox.tsx +++ b/server/sonar-web/src/main/js/components/controls/SearchBox.tsx @@ -170,7 +170,7 @@ export default class SearchBox extends React.PureComponent<Props, State> { )} {tooShort && minLength !== undefined && ( - <span className="search-box-note"> + <span aria-live="assertive" className="search-box-note"> {translateWithParameters('select2.tooShort', minLength)} </span> )} |