-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CrOS Settings: Focus page after menu item select
When infinite scroll is removed, clicking a menu item should shift focus to the page contents. Screen recording: http://shortn/_dngeqXdTXx Bug: b/285968876 Test: browser_tests --gtest_filter="OSSettingsMainPageContainer*" Test: browser_tests --gtest_filter="OSSettingsOsSettingsUi*" Change-Id: Iff143d5cbe1e6b414df73ff7fa03090bab1f264d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4614412 Commit-Queue: Wes Okuhara <wesokuhara@google.com> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/main@{#1159453}
- Loading branch information
Wes Okuhara
authored and
Chromium LUCI CQ
committed
Jun 19, 2023
1 parent
3ee9d86
commit dd1c309
Showing
5 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
chrome/browser/resources/settings/chromeos/main_page_container/page_displayer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
<style> | ||
:host { | ||
/* Do not show outline when focused. */ | ||
outline: none; | ||
} | ||
|
||
/* When infinite scroll is removed, only active pages should be visible. */ | ||
:host-context(.revamp-wayfinding-enabled):host(:not([active])) { | ||
display: none; | ||
} | ||
</style> | ||
<!-- This element should be focusable (e.g. After this page's respective menu | ||
item is selected). Set tabindex="-1" so this element is focusable, but not | ||
reachable via sequential keyboard navigation. --> | ||
<div id="focusHost" tabindex="-1"></div> | ||
<slot></slot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters