commit | 463280db645f3cde9e325ca6ec3b4ca060853e36 | [log] [tgz] |
---|---|---|
author | John Emau <johnemau@microsoft.com> | Fri Jul 19 00:37:40 2019 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jul 19 00:37:40 2019 +0000 |
tree | 2fe806c4d309b1fcb4a97210d39a3502a657d1b7 | |
parent | ade5e125298e4f3c34bfae52aaf7c60afea1fe0a [diff] [blame] |
DevTools: Allow screen readers to announce audit status This change marks that audit status text with role="status" which is an ARIA live region so screen readers will announce status changes. This meets the following WCAG success criteria 1.3.1 https://www.w3.org/WAI/WCAG21/quickref/#info-and-relationships 4.1.2 https://www.w3.org/WAI/WCAG21/quickref/#name-role-value 4.1.3 https://www.w3.org/WAI/WCAG21/quickref/#status-messages Bug: 963183 Change-Id: Ib0cef967fc4c8b22029eba7fb664cb516ca299e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1701637 Commit-Queue: John Emau <johnemau@microsoft.com> Reviewed-by: Joel Einbinder <einbinder@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#678918} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 24b0e9be9cd9f014cf747b7a6c72285ac98c462a
diff --git a/front_end/audits/AuditsStatusView.js b/front_end/audits/AuditsStatusView.js index 0d025a1..3ebd460 100644 --- a/front_end/audits/AuditsStatusView.js +++ b/front_end/audits/AuditsStatusView.js
@@ -55,6 +55,7 @@ this._progressWrapper = fragment.$('progress-wrapper'); this._progressBar = fragment.$('progress-bar'); this._statusText = fragment.$('status-text'); + UI.ARIAUtils.markAsStatus(this._statusText); this._dialog.setDefaultFocusedElement(cancelButton); this._dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.SetExactWidthMaxHeight);