Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Issue 2201033004: Improved accessibility of treeview control used in internal pages. (Closed)

Created:
4 years, 4 months ago by nektarios
Modified:
4 years, 4 months ago
Reviewers:
dmazzoni, Nico, dpapad
CC:
chromium-reviews, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improved accessibility of treeview control used in internal pages. 1. Added accessibility label for each tree item. Without it the accessible label was automatically computed by concatenating the text in all the children: a non-sensical output. 2. Added group role for children which enables screen readers to announce the current level in the tree. 3. Added aria-expanded for tree items with children. R=dmazzoni@chromium.org, thakis@chromium.org TESTED=Manually with Jaws and NVDA CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/2a282cecab19f84128c0bb12f5fe1d9dd0f4c87a Cr-Commit-Position: refs/heads/master@{#410414}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -6 lines) Patch
M ui/webui/resources/js/cr/ui/tree.js View 1 5 chunks +16 lines, -6 lines 1 comment Download

Messages

Total messages: 14 (4 generated)
nektarios
4 years, 4 months ago (2016-08-03 01:44:19 UTC) #1
nektarios
4 years, 4 months ago (2016-08-03 15:55:32 UTC) #4
dpapad
https://codereview.chromium.org/2201033004/diff/1/ui/webui/resources/js/cr/ui/tree.js File ui/webui/resources/js/cr/ui/tree.js (right): https://codereview.chromium.org/2201033004/diff/1/ui/webui/resources/js/cr/ui/tree.js#newcode259 ui/webui/resources/js/cr/ui/tree.js:259: '<div class=tree-children role=group></div>'; All those class= statements are missing ...
4 years, 4 months ago (2016-08-03 20:31:19 UTC) #5
nektarios
All fixed.
4 years, 4 months ago (2016-08-03 22:35:56 UTC) #6
dpapad
LGTM, for JS style. Not familiar with the accessibility APIs though.
4 years, 4 months ago (2016-08-03 22:46:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2201033004/20001
4 years, 4 months ago (2016-08-08 19:21:28 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-08 20:09:04 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2a282cecab19f84128c0bb12f5fe1d9dd0f4c87a Cr-Commit-Position: refs/heads/master@{#410414}
4 years, 4 months ago (2016-08-08 20:11:20 UTC) #12
dmazzoni
lgtm with one possible bug https://codereview.chromium.org/2201033004/diff/20001/ui/webui/resources/js/cr/ui/tree.js File ui/webui/resources/js/cr/ui/tree.js (right): https://codereview.chromium.org/2201033004/diff/20001/ui/webui/resources/js/cr/ui/tree.js#newcode284 ui/webui/resources/js/cr/ui/tree.js:284: treeItemAutoGeneratedIdCounter; I think you ...
4 years, 4 months ago (2016-08-08 20:24:25 UTC) #13
chromium-reviews
4 years, 4 months ago (2016-08-08 21:22:32 UTC) #14
Message was sent while issue was closed.
>
https://codereview.chromium.org/2201033004/diff/20001/ui/webui/resources/js/c...
> ui/webui/resources/js/cr/ui/tree.js:284: treeItemAutoGeneratedIdCounter;
> I think you need to increment this?

It is incremented when a new tree item is added. The tree item gets an 
ID like "tree-item-id-5".
I wanted to use the same number for the tree item's label. Something 
like "tree-item-label-id-5". So, I didn't increment.
The label is a child of the tree item.

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698