fune/browser/components/urlbar/content
Drew Willcoxon d07b087748 Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog. r=dao
Give `tabindex` attributes to each focusable element and handle enter keypresses
(via the `dialogaccept` event) on them. The tab index ordering is:

1. Accept button (initial focus)
2. Settings button
3. Learn more
4. Not now

Also give `#infoBody` a tab index of -1 so it doesn't receive focus. It does
normally for some reason.

The accept button still does not have a focus ring initially. When you hit tab
the first time, the focus ring appear on the settings button. IMO it's better
not to show the ring initially since most people won't be interacting with the
dialog with the keyboard, and even those that do don't necessarily need to see
it initially. If we do want it initially, calling `focus` on the button in a
load event listener works.

On Windows (and maybe Linux?), the arrow keys still move around the elements
until the focus gets stuck on the Not now link. After that the arrow keys don't
work anymore but the tab key still does. Not sure how to fix that part.

Differential Revision: https://phabricator.services.mozilla.com/D125616
2021-09-15 15:39:48 +00:00
..
firefoxSuggest.ftl Bug 1729587 - Tweaks to the Firefox Suggest preferences UI. r=mak,preferences-reviewers,jaws,fluent-reviewers 2021-09-11 02:27:38 +00:00
interventions.ftl Bug 1691751 - Fix Fluent linting whitespace issues; r=dminor,flod 2021-02-17 21:02:49 +00:00
preloaded-top-urls.json Bug 1715137 - Part 1 - Split UrlbarProviderPreloadedSites out from UnifiedComplete. r=adw 2021-06-22 21:02:57 +00:00
quicksuggestOnboarding.css Bug 1727907 - Make Firefox Suggest an opt-in feature and update the onboarding dialog accordingly. r=daleharvey 2021-08-30 15:56:28 +00:00
quicksuggestOnboarding.js Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog. r=dao 2021-09-15 15:39:48 +00:00
quicksuggestOnboarding.xhtml Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog. r=dao 2021-09-15 15:39:48 +00:00
quicksuggestOnboarding_illustration.svg Bug 1727907 - Make Firefox Suggest an opt-in feature and update the onboarding dialog accordingly. r=daleharvey 2021-08-30 15:56:28 +00:00