Closed
Bug 1336937
Opened 9 years ago
Closed 9 years ago
Add aria-pressed to the filter buttons
Categories
(DevTools :: Console, defect, P1)
DevTools
Console
Tracking
(firefox54 verified)
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | verified |
People
(Reporter: rickychien, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
It's a regression due to react refactoring. This issue raised on both webconsole and netmonitor (bug 1335322).
We should ensure to set aria-pressed="true" if filter button is toggled and set aria-pressed="false" vise versa. Plus, it would be great if we can add a test in case of regression.
Nicolas, would you like to take a look at this? Thanks:)
| Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(chevobbe.nicolas)
| Assignee | ||
Comment 1•9 years ago
|
||
Sure, thanks for reporting
Assignee: nobody → chevobbe.nicolas
Blocks: enable-new-console
Flags: needinfo?(chevobbe.nicolas)
Priority: -- → P1
| Comment hidden (mozreview-request) |
Updated•9 years ago
|
Status: NEW → ASSIGNED
Iteration: --- → 54.2 - Feb 20
Flags: qe-verify?
Whiteboard: [new-console]
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8833955 [details]
Bug 1336937 - Add aria-pressed to the filter buttons in new console.
https://reviewboard.mozilla.org/r/110064/#review111076
Looks good thanks!
(my comment below is more a question than a request for change!)
::: devtools/client/webconsole/new-console-output/components/filter-button.js:40
(Diff revision 1)
> if (active) {
> classList.push("checked");
> }
>
> return dom.button({
> + "aria-pressed": (active === true).toString(),
I don't think toString() is mandatory here?
Attachment #8833955 -
Flags: review?(jdescottes) → review+
| Assignee | ||
Comment 4•9 years ago
|
||
> I don't think toString() is mandatory here?
I thought it was, when I didn't put it, the attribute wasn't appended in the node.
But doing a quick test https://jsfiddle.net/n4zthvxw/1/ seems to indicate that it should work
| Assignee | ||
Comment 5•9 years ago
|
||
My comment was cut-off (thanks bugzilla emoji's support :) ).
> I thought it was, when I didn't put it, the attribute wasn't appended in the node.
> But doing a quick test https://jsfiddle.net/n4zthvxw/1/ seems to indicate that it should work
I'll double-check later to see if I did something wrong the first time.
| Comment hidden (mozreview-request) |
Pushed by chevobbe.nicolas@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/56b0d9ecb97b
Add aria-pressed to the filter buttons in new console. r=jdescottes
Comment 8•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Updated•9 years ago
|
Flags: qe-verify? → qe-verify+
QA Contact: iulia.cristescu
Comment 9•9 years ago
|
||
I have reproduced this issue using Firefox 53.0a2 (ID=20170206004003) on Win 8.1 x64.
I can confirm this issue is fixed, I verified using Firefox 54.0a1 on Win 8.1 x64, Ubuntu 14.04 x64 and Mac OS X 10.11.
Flags: qe-verify+
Updated•9 years ago
|
Whiteboard: [new-console]
Updated•9 years ago
|
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•