Skip to content

Commit ffc6f4b

Browse files
authored
feat(cdk-experimental/menu): add functionality to navigate a Menu and MenuBar with a keyboard (#19962)
The aria spec for Menu and MenuBar describes a robust set of instructions for navigating the Menu using a keyboard. This implements the full aria spec for vertical and horizontal Menus along with support for left-to-right and right-to-left layouts. Some liberty is taken with handling keyboard events with modifier keys (home/end and escape) in order to match the existing mat-menu implementation for those keys.
1 parent 513ef44 commit ffc6f4b

17 files changed

+1609
-104
lines changed

src/cdk-experimental/menu/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ ng_module(
1010
),
1111
module_name = "@angular/cdk-experimental/menu",
1212
deps = [
13+
"//src/cdk/a11y",
1314
"//src/cdk/bidi",
1415
"//src/cdk/coercion",
1516
"//src/cdk/collections",
17+
"//src/cdk/keycodes",
1618
"//src/cdk/overlay",
1719
"@npm//@angular/core",
1820
"@npm//rxjs",
@@ -28,6 +30,8 @@ ng_test_library(
2830
deps = [
2931
":menu",
3032
"//src/cdk/collections",
33+
"//src/cdk/keycodes",
34+
"//src/cdk/testing/private",
3135
"@npm//@angular/platform-browser",
3236
],
3337
)

0 commit comments

Comments
 (0)