Skip to content

Commit

Permalink
Bug 1844062 - [devtools] Properly handle aria-pressed attribute on se…
Browse files Browse the repository at this point in the history
…lector highlighter icon. r=devtools-reviewers,ochameau.

Differential Revision: https://phabricator.services.mozilla.com/D189916

UltraBlame original commit: 6a3696d25b3eb37571c0cb68fc067a89c26b845a
  • Loading branch information
marco-c committed Oct 13, 2023
1 parent 7579a72 commit 20df61f
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions devtools/client/inspector/rules/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -2381,6 +2381,18 @@ query
)
)
{
const
isHighlighterDisplayed
=
eventName
=
=
"
highlighter
-
shown
"
;
node
.
classList
Expand All @@ -2390,14 +2402,19 @@ toggle
"
highlighted
"
eventName
=
=
isHighlighterDisplayed
)
;
node
.
setAttribute
(
"
highlighter
aria
-
shown
pressed
"
isHighlighterDisplayed
)
;
}
Expand Down

0 comments on commit 20df61f

Please sign in to comment.