Bug 1335322 - Add aria-pressed to the filter buttons for aurora r=honza a=gchang
authorRicky Chien <rchien@mozilla.com>
Wed, 08 Feb 2017 12:31:08 +0800
changeset 378439 a57e10371afcb34942a2df45004348b96f429919
parent 378438 7fe936056b729aa7ac36c439ed92c8bbe0ec5677
child 378440 d294db316025678dd7ca6a086118d05e6c111fc1
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershonza, gchang
bugs1335322
milestone53.0a2
Bug 1335322 - Add aria-pressed to the filter buttons for aurora r=honza a=gchang MozReview-Commit-ID: 4ADna2E7pSs
devtools/client/netmonitor/components/filter-buttons.js
--- a/devtools/client/netmonitor/components/filter-buttons.js
+++ b/devtools/client/netmonitor/components/filter-buttons.js
@@ -21,16 +21,17 @@ function FilterButtons({
 
     return button({
       id: `requests-menu-filter-${type}-button`,
       key: type,
       className: classList.join(" "),
       "data-key": type,
       onClick: toggleRequestFilterType,
       onKeyDown: toggleRequestFilterType,
+      "aria-pressed": checked,
     }, L10N.getStr(`netmonitor.toolbar.filter.${type}`));
   }).toArray();
 
   return div({ id: "requests-menu-filter-buttons" }, buttons);
 }
 
 FilterButtons.propTypes = {
   requestFilterTypes: PropTypes.object.isRequired,