commit | 8aee6c22bab057432833c4ceb0fb3dce1c30789e | [log] [tgz] |
---|---|---|
author | Shawn Lauriat <lauriat@google.com> | Wed Aug 23 16:02:52 2017 -0400 |
committer | Julien Dramaix <dramaix@google.com> | Tue Aug 29 19:43:19 2017 +0000 |
tree | 9bd1c907f7102cfb2bfc01d683fd7758c8c2bc28 | |
parent | 48d7b79d994e16e33b870dcafb4bf86797375e9b [diff] |
Replace role="presentation" with aria-hidden="true" in order to fix a previous attempt at fixing an issue where screen readers will navigate to the hidden input of focusable containers when they should not: https://github.com/gwtproject/gwt/commit/bda85103bd88e9a58d0158e5a4a2946519e99bed Change-Id: I3dc0ecaa017a0fe5af8ea1dabb19cfacfe4d17a9
diff --git a/user/src/com/google/gwt/user/client/ui/impl/FocusImplStandard.java b/user/src/com/google/gwt/user/client/ui/impl/FocusImplStandard.java index f834a98..e094149 100644 --- a/user/src/com/google/gwt/user/client/ui/impl/FocusImplStandard.java +++ b/user/src/com/google/gwt/user/client/ui/impl/FocusImplStandard.java
@@ -42,7 +42,7 @@ var input = $doc.createElement('input'); input.type = 'text'; input.tabIndex = -1; - input.setAttribute('role', 'presentation'); + input.setAttribute('aria-hidden', 'true'); var style = input.style; style.opacity = 0; style.height = '1px';