Add color and contrast check information to the a11y panel sidebar.
Categories
(DevTools :: Accessibility Tools, enhancement)
Tracking
(firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: yzen, Assigned: yzen)
References
(Depends on 2 open bugs)
Details
Attachments
(8 files, 7 obsolete files)
16.26 KB,
image/png
|
Details | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
yzen
:
ui-review+
|
Details | Review |
Right now that information is only available through the highlighter that does not have keyboard alternative. It should also be present in the sidebar to be accessible to the non-mouse users.
Assignee | ||
Comment 1•6 years ago
|
||
MozReview-Commit-ID: CUFTQIS9WPv
Assignee | ||
Comment 2•6 years ago
|
||
MozReview-Commit-ID: 2Ft28e4sbi
Depends on D17969
Assignee | ||
Comment 3•6 years ago
|
||
MozReview-Commit-ID: BzTSPJQxYfi
Depends on D17970
Assignee | ||
Comment 4•6 years ago
|
||
MozReview-Commit-ID: 2KCXrB9zCr0
Depends on D17971
Assignee | ||
Comment 5•6 years ago
|
||
MozReview-Commit-ID: DoOp2JhaQyD
Depends on D17972
Assignee | ||
Comment 6•6 years ago
|
||
MozReview-Commit-ID: 4HO7WDbyPKA
Depends on D17973
Assignee | ||
Comment 7•6 years ago
|
||
MozReview-Commit-ID: AAKt7zDvom8
Depends on D17974
Assignee | ||
Comment 8•6 years ago
|
||
Comment on attachment 9039894 [details]
Bug 1518487 - adding new checks section in the accessibility panel's sidebar. r=pbro,gl
Hi Victoria,
Could you please review the new Checks/Colour Contrast section in the sidebar in a11y panel. Here's the build for convenience:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=47700e59221ac49f7ad3055d8bfd87d478d04ffe
Comment 9•6 years ago
|
||
Comment on attachment 9039894 [details]
Bug 1518487 - adding new checks section in the accessibility panel's sidebar. r=pbro,gl
Hi Yura, this is awesome!
-
A bit more line height would be great. We have some brand new contributor work on a standard for this - basically, 20px high rows, with 4px accordion content padding. https://github.com/devtools-html/ux/issues/45#issuecomment-457021260
-
I'd non-italicize the WCAG sentence as it's starting to feel like too many different text styles for me. We could instead tone it down by coloring it Gray 50.
-
Not sure if it makes sense to have the whole Checks section be selectable by mouse. The blue left border and persistent gray background seem unnecessary.
-
Maybe a single title of "Color Contrast," with no extra "Contrast:" label would be better. We could also bump up the size of the color wells. It could float to the left of both the contrast value and the info text. (Of course this is pretty polish-y and could be for a different patch)
Color Contrast
[[ ] 12.43 AAA ✔︎
[ ]] Meets WCAG AAA standards for accessible text. Learn more
Comment 10•6 years ago
|
||
It would be good to also add an "empty" state, similar to what we have in the inspector panels. See screenshot attached :)
Assignee | ||
Comment 11•6 years ago
|
||
MozReview-Commit-ID: CUFTQIS9WPv
Assignee | ||
Comment 12•6 years ago
|
||
MozReview-Commit-ID: 2Ft28e4sbi
Depends on D19048
Assignee | ||
Comment 13•6 years ago
|
||
MozReview-Commit-ID: BzTSPJQxYfi
Depends on D19049
Assignee | ||
Comment 14•6 years ago
|
||
MozReview-Commit-ID: 4HO7WDbyPKA
Depends on D19050
Assignee | ||
Comment 15•6 years ago
|
||
MozReview-Commit-ID: 2KCXrB9zCr0
Depends on D19051
Assignee | ||
Comment 16•6 years ago
|
||
MozReview-Commit-ID: DoOp2JhaQyD
Depends on D19052
Assignee | ||
Comment 17•6 years ago
|
||
MozReview-Commit-ID: AAKt7zDvom8
Depends on D19053
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 18•6 years ago
|
||
Comment on attachment 9042267 [details]
Bug 1518487 - adding new checks section in the accessibility panel's sidebar. r=pbro,gl
Carrying over r+ from Victoria
Assignee | ||
Comment 19•6 years ago
|
||
(In reply to Victoria Wang [:victoria] from comment #9)
Comment on attachment 9039894 [details]
Bug 1518487 - adding new checks section in the accessibility panel's sidebar. r=pbro,glHi Yura, this is awesome!
A bit more line height would be great. We have some brand new contributor work on a standard for this - basically, 20px high rows, with 4px accordion content padding. https://github.com/devtools-html/ux/issues/45#issuecomment-457021260
I'd non-italicize the WCAG sentence as it's starting to feel like too many different text styles for me. We could instead tone it down by coloring it Gray 50.
Not sure if it makes sense to have the whole Checks section be selectable by mouse. The blue left border and persistent gray background seem unnecessary.
This is really going to become a list of things so currently selected list item will make more sense soon, I think.
- Maybe a single title of "Color Contrast," with no extra "Contrast:" label would be better. We could also bump up the size of the color wells. It could float to the left of both the contrast value and the info text. (Of course this is pretty polish-y and could be for a different patch)
Color Contrast [[ ] 12.43 AAA ✔︎ [ ]] Meets WCAG AAA standards for accessible text. Learn more
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Backed out for failures on devtools/client/accessibility/test/browser/browser_accessibility_sidebar_checks.js
backout: https://hg.mozilla.org/integration/autoland/rev/fa0dd711bbf7c3d5cbe685aff19fa1811380476d
Due to the bustage that affected this push, the devtools were first seen on this push: https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedJob=227749484&searchStr=devtools&revision=5f738ddb6e4ab871f8a29f3e14fadc765c0f3129
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=227757516&repo=autoland&lineNumber=2445
task 2019-02-11T22:16:32.320Z] 22:16:32 INFO - Waiting for state predicate "({ details }) => {
[task 2019-02-11T22:16:32.320Z] 22:16:32 INFO - const { audit } = details;
[task 2019-02-11T22:16:32.321Z] 22:16:32 INFO -
[task 2019-02-11T22:16:32.322Z] 22:16:32 INFO - for (const key in expectedState) {
[task 2019-02-11T22:16:32.323Z] 22:16:32 INFO - const expected = expectedState[key];
[task 2019-02-11T22:16:32.323Z] 22:16:32 INFO - if (expected && typeof expected === "object") {
[task 2019-02-11T22:16:32.324Z] 22:16:32 INFO - if (JSON.stringify(audit[key], parseNumReplacer) !==
[task 2019-02-11T22:16:32.325Z] 22:16:32 INFO - JSON.stringify(expected, parseNumReplacer)) {
[task 2019-02-11T22:16:32.326Z] 22:16:32 INFO - return false;
[task 2019-02-11T22:16:32.327Z] 22:16:32 INFO - }
[task 2019-02-11T22:16:32.328Z] 22:16:32 INFO - } else if (audit && audit[key] !== expected) {
[task 2019-02-11T22:16:32.329Z] 22:16:32 INFO - return false;
[task 2019-02-11T22:16:32.329Z] 22:16:32 INFO - }
[task 2019-02-11T22:16:32.330Z] 22:16:32 INFO - }
[task 2019-02-11T22:16:32.331Z] 22:16:32 INFO -
[task 2019-02-11T22:16:32.332Z] 22:16:32 INFO - ok(true, "Audit state is correct.");
[task 2019-02-11T22:16:32.333Z] 22:16:32 INFO - return true;
[task 2019-02-11T22:16:32.334Z] 22:16:32 INFO - }"
[task 2019-02-11T22:16:32.336Z] 22:16:32 INFO - Buffered messages finished
[task 2019-02-11T22:16:32.337Z] 22:16:32 INFO - TEST-UNEXPECTED-FAIL | devtools/client/accessibility/test/browser/browser_accessibility_sidebar_checks.js | Test timed out -
[task 2019-02-11T22:16:32.338Z] 22:16:32 INFO - Removing tab.
[task 2019-02-11T22:16:32.339Z] 22:16:32 INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2019-02-11T22:16:32.340Z] 22:16:32 INFO - Got event: 'TabClose' on [object XULElement].
[task 2019-02-11T22:16:32.341Z] 22:16:32 INFO - Tab removed and finished closing
[task 2019-02-11T22:16:32.342Z] 22:16:32 INFO - Cleaning up...
[task 2019-02-11T22:16:32.589Z] 22:16:32 INFO - GECKO(2535) | MEMORY STAT | vsize 2068MB | residentFast 347MB | heapAllocated 111MB
[task 2019-02-11T22:16:32.592Z] 22:16:32 INFO - TEST-OK | devtools/client/accessibility/test/browser/browser_accessibility_sidebar_checks.js | took 45964ms
Comment 22•6 years ago
|
||
![]() |
||
Comment 23•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f1c16e2af72f
https://hg.mozilla.org/mozilla-central/rev/7fe5ccd66c8f
https://hg.mozilla.org/mozilla-central/rev/bcda0131d8f5
https://hg.mozilla.org/mozilla-central/rev/4923cfe749d5
https://hg.mozilla.org/mozilla-central/rev/8de6b5e7abb3
https://hg.mozilla.org/mozilla-central/rev/b8b41d218866
https://hg.mozilla.org/mozilla-central/rev/090304ca37d9
Assignee | ||
Updated•6 years ago
|
Description
•