-
Notifications
You must be signed in to change notification settings - Fork 189
static/frontend: add search aria-describedby #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Currently the search input aria-label is static and when focused on by a screen reader, the screen reader does not read the search tip found below the input. This change checks the .TipIndex value and if it matches adds the id=SearchTipContent which the input's aria-describedby is attached to, thus allowing the visible tip/description to be read as supplemental info after the input's existing aria-label. Fixes b/#283297190
|
This PR (HEAD: 2ebbcc3) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/pkgsite/+/625235. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Joy Serquina (xWF): Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 1: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Ian Lance Taylor: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Joy Serquina (xWF): Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 3: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-12-04T14:56:14Z","revision":"2430f3fade26fdd0f2a8fd2d1ee74f1b1c643dd0"} Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from kokoro: Patch Set 3: Kokoro presubmit build queued for golang/pkgsite/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from kokoro: Patch Set 3: Kokoro presubmit build starting for golang/pkgsite/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 3: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 3: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 3: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Denis Bowen (xWF): Patch Set 3: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from kokoro: Patch Set 3: kokoro-CI-1 Kokoro presubmit build finished with status: FAILURE Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 3: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-12-04T15:44:17Z","revision":"2430f3fade26fdd0f2a8fd2d1ee74f1b1c643dd0"} Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 3: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 3: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from kokoro: Patch Set 3: Kokoro presubmit build starting for golang/pkgsite/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from kokoro: Patch Set 3: Kokoro presubmit build finished with status: FAILURE Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 4: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-12-04T16:50:30Z","revision":"78889042959b1813de9247d0d0bc941acd072f32"} Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from kokoro: Patch Set 4: Kokoro presubmit build queued for golang/pkgsite/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from kokoro: Patch Set 4: Kokoro presubmit build starting for golang/pkgsite/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Jonathan Amsterdam: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 4: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
|
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/625235. |
Currently the search input aria-label is static and when focused on by a screen reader, the screen reader does not read the search tip found below the input. This change checks the .TipIndex value and if it matches adds the id=SearchTipContent which the input's aria-describedby is attached to, thus allowing the visible tip/description to be read as supplemental info after the input's existing aria-label. Before screenshot: https://screenshot.googleplex.com/AkAmQ69s4R3NsZS After screenshot: https://screenshot.googleplex.com/94MwK6bXpSBE6Gr Fixes b/283297190 Change-Id: I4363f226673c9da1abcfced38088398a5f7a5b2e GitHub-Last-Rev: 2ebbcc3 GitHub-Pull-Request: #102 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/625235 kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Denis Bowen (xWF) <denisbowen@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
|
This PR is being closed because golang.org/cl/625235 has been merged. |
Currently the search input aria-label is static and when focused on by a screen reader, the screen reader does not read the search tip found below the input. This change checks the .TipIndex value and if it matches adds the id=SearchTipContent which the input's aria-describedby is attached to, thus allowing the visible tip/description to be read as supplemental info after the input's existing aria-label. Before screenshot: https://screenshot.googleplex.com/AkAmQ69s4R3NsZS After screenshot: https://screenshot.googleplex.com/94MwK6bXpSBE6Gr Fixes b/283297190 Change-Id: I4363f226673c9da1abcfced38088398a5f7a5b2e GitHub-Last-Rev: 2ebbcc3 GitHub-Pull-Request: golang#102 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/625235 kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Denis Bowen (xWF) <denisbowen@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Currently the search input aria-label is static and when
focused on by a screen reader, the screen reader does
not read the search tip found below the input. This
change checks the .TipIndex value and if it
matches adds the id=SearchTipContent which the input's
aria-describedby is attached to, thus allowing the visible
tip/description to be read as supplemental info after the
input's existing aria-label.
Before screenshot:
https://screenshot.googleplex.com/AkAmQ69s4R3NsZS
After screenshot:
https://screenshot.googleplex.com/94MwK6bXpSBE6Gr
Fixes b/283297190