summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2024-03-27 23:58:36 +0100
committerFlorian Bruhin <me@the-compiler.org>2024-03-27 23:58:36 +0100
commit3d86d7876abddea68fd04bd72ce3a7f8c9f297ad (patch)
tree3f179857ee89e5b65bb0f48d4921c8025bf3c7d3
parent9560d7355fc9d46b1bb3dd33878a365763c89677 (diff)
downloadqutebrowser-3d86d7876abddea68fd04bd72ce3a7f8c9f297ad.tar.gz
qutebrowser-3d86d7876abddea68fd04bd72ce3a7f8c9f297ad.zip
Add role="switch" to default hints.selectors
See https://www.reddit.com/r/qutebrowser/comments/1bomb3h/closing_popups_within_a_webpage_and_toggling/
-rw-r--r--doc/changelog.asciidoc2
-rw-r--r--doc/help/settings.asciidoc1
-rw-r--r--qutebrowser/config/configdata.yml1
3 files changed, 4 insertions, 0 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc
index 53bb75a2f..f5395c750 100644
--- a/doc/changelog.asciidoc
+++ b/doc/changelog.asciidoc
@@ -31,6 +31,8 @@ Changed
- A few more completions will now match search terms in any order:
`:quickmark-*`, `:bookmark-*`, `:tab-take` and `:tab-select` (for the quick
and bookmark categories). (#7955)
+- Elements with an ARIA `role="switch"` now get hints (toggle switches like
+ e.g. on cookie banners).
Fixed
~~~~~
diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc
index b69700880..af76527c9 100644
--- a/doc/help/settings.asciidoc
+++ b/doc/help/settings.asciidoc
@@ -3476,6 +3476,7 @@ Default:
* +pass:[[role=&quot;button&quot;\]]+
* +pass:[[role=&quot;tab&quot;\]]+
* +pass:[[role=&quot;checkbox&quot;\]]+
+* +pass:[[role=&quot;switch&quot;\]]+
* +pass:[[role=&quot;menuitem&quot;\]]+
* +pass:[[role=&quot;menuitemcheckbox&quot;\]]+
* +pass:[[role=&quot;menuitemradio&quot;\]]+
diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml
index de6948150..ca92f96c1 100644
--- a/qutebrowser/config/configdata.yml
+++ b/qutebrowser/config/configdata.yml
@@ -1784,6 +1784,7 @@ hints.selectors:
- '[role="button"]'
- '[role="tab"]'
- '[role="checkbox"]'
+ - '[role="switch"]'
- '[role="menuitem"]'
- '[role="menuitemcheckbox"]'
- '[role="menuitemradio"]'