Closed Bug 1336937 Opened 9 years ago Closed 9 years ago

Add aria-pressed to the filter buttons

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox54 verified)

VERIFIED FIXED
Firefox 54
Iteration:
54.2 - Feb 20
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:)
Flags: needinfo?(chevobbe.nicolas)
Sure, thanks for reporting
Assignee: nobody → chevobbe.nicolas
Flags: needinfo?(chevobbe.nicolas)
Priority: -- → P1
Status: NEW → ASSIGNED
Iteration: --- → 54.2 - Feb 20
Flags: qe-verify?
Whiteboard: [new-console]
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+
> 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
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.
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
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Flags: qe-verify? → qe-verify+
QA Contact: iulia.cristescu
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+
Whiteboard: [new-console]
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: