diff --git a/src/components-examples/aria/menu/BUILD.bazel b/src/components-examples/aria/menu/BUILD.bazel
index 5827e26e1c7b..548211a6572c 100644
--- a/src/components-examples/aria/menu/BUILD.bazel
+++ b/src/components-examples/aria/menu/BUILD.bazel
@@ -13,6 +13,7 @@ ng_project(
"//:node_modules/@angular/core",
"//src/aria/menu",
"//src/cdk/a11y",
+ "//src/cdk/overlay",
],
)
diff --git a/src/components-examples/aria/menu/index.ts b/src/components-examples/aria/menu/index.ts
index 1aacab273cf2..e5afd68153a5 100644
--- a/src/components-examples/aria/menu/index.ts
+++ b/src/components-examples/aria/menu/index.ts
@@ -1,6 +1,3 @@
-export {MenuBarExample} from './menu-bar/menu-bar-example';
-export {MenuBarRTLExample} from './menu-bar-rtl/menu-bar-rtl-example';
-export {MenuBarDisabledExample} from './menu-bar-disabled/menu-bar-disabled-example';
export {MenuContextExample} from './menu-context/menu-context-example';
export {MenuTriggerExample} from './menu-trigger/menu-trigger-example';
export {MenuTriggerDisabledExample} from './menu-trigger-disabled/menu-trigger-disabled-example';
diff --git a/src/components-examples/aria/menu/menu-bar-disabled/menu-bar-disabled-example.html b/src/components-examples/aria/menu/menu-bar-disabled/menu-bar-disabled-example.html
deleted file mode 100644
index 5a97e99fa8cb..000000000000
--- a/src/components-examples/aria/menu/menu-bar-disabled/menu-bar-disabled-example.html
+++ /dev/null
@@ -1,324 +0,0 @@
-
-
File
-
-
-
-
- article
- New
- ⌘N
-
-
-
- folder
- Open
- ⌘O
-
-
-
- file_copy
- Make a copy
-
-
-
-
-
- person_add
- Share
- arrow_right
-
-
-
-
-
- person_add
- Share with others
-
-
-
- public
- Publish to web
-
-
-
-
-
- download
- Download
-
-
-
- print
- Print
-
-
-
-
-
- edit
- Rename
-
-
-
- delete
- Move to trash
-
-
-
-
-
Edit
-
-
-
-
- undo
- Undo
- ⌘Z
-
-
-
- redo
- Redo
- ⌘Y
-
-
-
-
-
- content_cut
- Cut
- ⌘X
-
-
-
- content_copy
- Copy
- ⌘C
-
-
-
- content_paste
- Paste
- ⌘V
-
-
-
-
-
- find_replace
- Find and replace
- ⇧⌘H
-
-
-
-
-
View
-
-
-
-
- check
- Show print layout
-
-
-
- check
- Show ruler
-
-
-
-
-
- Zoom in
- ⌘+
-
-
-
- Zoom out
- ⌘-
-
-
-
-
-
- Full screen
-
-
-
-
-
Insert
-
-
-
-
- image
- Image
- arrow_right
-
-
-
-
-
- upload
- Upload from computer
-
-
-
- search
- Search the web
-
-
-
- link
- By URL
-
-
-
-
-
- table_chart
- Table
-
-
-
- insert_chart
- Chart
- arrow_right
-
-
-
-
-
- bar_chart
- Bar
-
-
-
- insert_chart
- Column
-
-
-
- show_chart
- Line
-
-
-
- pie_chart
- Pie
-
-
-
-
-
- horizontal_rule
- Horizontal line
-
-
-
-
-
Format
-
-
-
-
- format_bold
- Text
- arrow_right
-
-
-
-
-
- format_bold
- Bold
- ⌘B
-
-
-
- format_italic
- Italic
- ⌘I
-
-
-
- format_underlined
- Underline
- ⌘U
-
-
-
- strikethrough_s
- Strikethrough
- ⇧⌘X
-
-
-
-
-
- Size
- arrow_right
-
-
-
-
-
- Increase font size
- ⇧⌘.
-
-
-
- Decrease font size
- ⇧⌘,
-
-
-
-
-
-
-
- format_align_justify
- Paragraph styles
- arrow_right
-
-
-
-
- Normal text
- Heading 1
- Heading 2
-
-
-
-
- format_indent_increase
- Align & indent
- arrow_right
-
-
-
-
-
- format_align_left
- Align left
-
-
-
- format_align_center
- Align center
-
-
-
- format_align_right
- Align right
-
-
-
- format_align_justify
- Justify
-
-
-
-
-
-
diff --git a/src/components-examples/aria/menu/menu-bar-disabled/menu-bar-disabled-example.ts b/src/components-examples/aria/menu/menu-bar-disabled/menu-bar-disabled-example.ts
deleted file mode 100644
index 9d8b7ce12e9e..000000000000
--- a/src/components-examples/aria/menu/menu-bar-disabled/menu-bar-disabled-example.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import {Component} from '@angular/core';
-import {
- SimpleMenu,
- SimpleMenuBar,
- SimpleMenuBarItem,
- SimpleMenuItem,
- SimpleMenuItemIcon,
- SimpleMenuItemShortcut,
- SimpleMenuItemText,
-} from '../simple-menu';
-import {MenuContent} from '@angular/aria/menu';
-
-/** @title Disabled menu bar example. */
-@Component({
- selector: 'menu-bar-disabled-example',
- templateUrl: 'menu-bar-disabled-example.html',
- styleUrl: '../menu-example.css',
- imports: [
- SimpleMenu,
- SimpleMenuBar,
- SimpleMenuBarItem,
- SimpleMenuItem,
- SimpleMenuItemIcon,
- SimpleMenuItemText,
- SimpleMenuItemShortcut,
- MenuContent,
- ],
-})
-export class MenuBarDisabledExample {}
diff --git a/src/components-examples/aria/menu/menu-bar-rtl/menu-bar-rtl-example.html b/src/components-examples/aria/menu/menu-bar-rtl/menu-bar-rtl-example.html
deleted file mode 100644
index b80f45019a79..000000000000
--- a/src/components-examples/aria/menu/menu-bar-rtl/menu-bar-rtl-example.html
+++ /dev/null
@@ -1,329 +0,0 @@
-
-
File
-
-
-
-
- article
- New
- ⌘N
-
-
-
- folder
- Open
- ⌘O
-
-
-
- file_copy
- Make a copy
-
-
-
-
-
- person_add
- Share
- arrow_left
-
-
-
-
-
- person_add
- Share with others
-
-
-
- public
- Publish to web
-
-
-
-
-
- download
- Download
-
-
-
- print
- Print
-
-
-
-
-
- edit
- Rename
-
-
-
- delete
- Move to trash
-
-
-
-
-
Edit
-
-
-
-
- undo
- Undo
- ⌘Z
-
-
-
- redo
- Redo
- ⌘Y
-
-
-
-
-
- content_cut
- Cut
- ⌘X
-
-
-
- content_copy
- Copy
- ⌘C
-
-
-
- content_paste
- Paste
- ⌘V
-
-
-
-
-
- find_replace
- Find and replace
- ⇧⌘H
-
-
-
-
-
View
-
-
-
-
- check
- Show print layout
-
-
-
- check
- Show ruler
-
-
-
-
-
- Zoom in
- ⌘+
-
-
-
- Zoom out
- ⌘-
-
-
-
-
-
- Full screen
-
-
-
-
-
Insert
-
-
-
-
- image
- Image
- arrow_left
-
-
-
-
-
- upload
- Upload from computer
-
-
-
- search
- Search the web
-
-
-
- link
- By URL
-
-
-
-
-
- table_chart
- Table
-
-
-
- insert_chart
- Chart
- arrow_left
-
-
-
-
-
- bar_chart
- Bar
-
-
-
- insert_chart
- Column
-
-
-
- show_chart
- Line
-
-
-
- pie_chart
- Pie
-
-
-
-
-
- horizontal_rule
- Horizontal line
-
-
-
-
-
Format
-
-
-
-
- format_bold
- Text
- arrow_left
-
-
-
-
-
- format_bold
- Bold
- ⌘B
-
-
-
- format_italic
- Italic
- ⌘I
-
-
-
- format_underlined
- Underline
- ⌘U
-
-
-
- strikethrough_s
- Strikethrough
- ⇧⌘X
-
-
-
-
-
- Size
- arrow_left
-
-
-
-
-
- Increase font size
- ⇧⌘.
-
-
-
- Decrease font size
- ⇧⌘,
-
-
-
-
-
-
-
- format_align_justify
- Paragraph styles
- arrow_left
-
-
-
-
- Normal text
- Heading 1
- Heading 2
-
-
-
-
- format_indent_increase
- Align & indent
- arrow_left
-
-
-
-
-
- format_align_left
- Align left
-
-
-
- format_align_center
- Align center
-
-
-
- format_align_right
- Align right
-
-
-
- format_align_justify
- Justify
-
-
-
-
-
-
diff --git a/src/components-examples/aria/menu/menu-bar-rtl/menu-bar-rtl-example.ts b/src/components-examples/aria/menu/menu-bar-rtl/menu-bar-rtl-example.ts
deleted file mode 100644
index d516adbd1e11..000000000000
--- a/src/components-examples/aria/menu/menu-bar-rtl/menu-bar-rtl-example.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import {Dir} from '@angular/cdk/bidi';
-import {Component} from '@angular/core';
-import {
- SimpleMenu,
- SimpleMenuBar,
- SimpleMenuBarItem,
- SimpleMenuItem,
- SimpleMenuItemIcon,
- SimpleMenuItemShortcut,
- SimpleMenuItemText,
-} from '../simple-menu';
-import {MenuContent} from '@angular/aria/menu';
-
-/** @title Menu bar RTL example. */
-@Component({
- selector: 'menu-bar-rtl-example',
- templateUrl: 'menu-bar-rtl-example.html',
- styleUrl: '../menu-example.css',
- imports: [
- Dir,
- SimpleMenu,
- SimpleMenuBar,
- SimpleMenuBarItem,
- SimpleMenuItem,
- SimpleMenuItemIcon,
- SimpleMenuItemText,
- SimpleMenuItemShortcut,
- MenuContent,
- ],
-})
-export class MenuBarRTLExample {}
diff --git a/src/components-examples/aria/menu/menu-bar/menu-bar-example.html b/src/components-examples/aria/menu/menu-bar/menu-bar-example.html
deleted file mode 100644
index 6d2f4406768b..000000000000
--- a/src/components-examples/aria/menu/menu-bar/menu-bar-example.html
+++ /dev/null
@@ -1,329 +0,0 @@
-
-
File
-
-
-
-
- article
- New
- ⌘N
-
-
-
- folder
- Open
- ⌘O
-
-
-
- file_copy
- Make a copy
-
-
-
-
-
- person_add
- Share
- arrow_right
-
-
-
-
-
- person_add
- Share with others
-
-
-
- public
- Publish to web
-
-
-
-
-
- download
- Download
-
-
-
- print
- Print
-
-
-
-
-
- edit
- Rename
-
-
-
- delete
- Move to trash
-
-
-
-
-
Edit
-
-
-
-
- undo
- Undo
- ⌘Z
-
-
-
- redo
- Redo
- ⌘Y
-
-
-
-
-
- content_cut
- Cut
- ⌘X
-
-
-
- content_copy
- Copy
- ⌘C
-
-
-
- content_paste
- Paste
- ⌘V
-
-
-
-
-
- find_replace
- Find and replace
- ⇧⌘H
-
-
-
-
-
View
-
-
-
-
- check
- Show print layout
-
-
-
- check
- Show ruler
-
-
-
-
-
- Zoom in
- ⌘+
-
-
-
- Zoom out
- ⌘-
-
-
-
-
-
- Full screen
-
-
-
-
-
Insert
-
-
-
-
- image
- Image
- arrow_right
-
-
-
-
-
- upload
- Upload from computer
-
-
-
- search
- Search the web
-
-
-
- link
- By URL
-
-
-
-
-
- table_chart
- Table
-
-
-
- insert_chart
- Chart
- arrow_right
-
-
-
-
-
- bar_chart
- Bar
-
-
-
- insert_chart
- Column
-
-
-
- show_chart
- Line
-
-
-
- pie_chart
- Pie
-
-
-
-
-
- horizontal_rule
- Horizontal line
-
-
-
-
-
Format
-
-
-
-
- format_bold
- Text
- arrow_right
-
-
-
-
-
- format_bold
- Bold
- ⌘B
-
-
-
- format_italic
- Italic
- ⌘I
-
-
-
- format_underlined
- Underline
- ⌘U
-
-
-
- strikethrough_s
- Strikethrough
- ⇧⌘X
-
-
-
-
-
- Size
- arrow_right
-
-
-
-
-
- Increase font size
- ⇧⌘.
-
-
-
- Decrease font size
- ⇧⌘,
-
-
-
-
-
-
-
- format_align_justify
- Paragraph styles
- arrow_right
-
-
-
-
- Normal text
- Heading 1
- Heading 2
-
-
-
-
- format_indent_increase
- Align & indent
- arrow_right
-
-
-
-
-
- format_align_left
- Align left
-
-
-
- format_align_center
- Align center
-
-
-
- format_align_right
- Align right
-
-
-
- format_align_justify
- Justify
-
-
-
-
-
-
diff --git a/src/components-examples/aria/menu/menu-bar/menu-bar-example.ts b/src/components-examples/aria/menu/menu-bar/menu-bar-example.ts
deleted file mode 100644
index 2f8881d5b114..000000000000
--- a/src/components-examples/aria/menu/menu-bar/menu-bar-example.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import {Component} from '@angular/core';
-import {
- SimpleMenu,
- SimpleMenuBar,
- SimpleMenuBarItem,
- SimpleMenuItem,
- SimpleMenuItemIcon,
- SimpleMenuItemShortcut,
- SimpleMenuItemText,
-} from '../simple-menu';
-import {MenuContent} from '@angular/aria/menu';
-
-/** @title Menu bar example. */
-@Component({
- selector: 'menu-bar-example',
- templateUrl: 'menu-bar-example.html',
- styleUrl: '../menu-example.css',
- imports: [
- SimpleMenu,
- SimpleMenuBar,
- SimpleMenuBarItem,
- SimpleMenuItem,
- SimpleMenuItemIcon,
- SimpleMenuItemText,
- SimpleMenuItemShortcut,
- MenuContent,
- ],
-})
-export class MenuBarExample {}
diff --git a/src/components-examples/aria/menubar/BUILD.bazel b/src/components-examples/aria/menubar/BUILD.bazel
new file mode 100644
index 000000000000..0bf9ca6cfb55
--- /dev/null
+++ b/src/components-examples/aria/menubar/BUILD.bazel
@@ -0,0 +1,27 @@
+load("//tools:defaults.bzl", "ng_project")
+
+package(default_visibility = ["//visibility:public"])
+
+ng_project(
+ name = "menubar",
+ srcs = glob(["**/*.ts"]),
+ assets = glob([
+ "**/*.html",
+ "**/*.css",
+ ]),
+ deps = [
+ "//:node_modules/@angular/core",
+ "//src/aria/menu",
+ "//src/cdk/a11y",
+ "//src/cdk/overlay",
+ ],
+)
+
+filegroup(
+ name = "source-files",
+ srcs = glob([
+ "**/*.html",
+ "**/*.css",
+ "**/*.ts",
+ ]),
+)
diff --git a/src/components-examples/aria/menubar/index.ts b/src/components-examples/aria/menubar/index.ts
new file mode 100644
index 000000000000..bc22b6308940
--- /dev/null
+++ b/src/components-examples/aria/menubar/index.ts
@@ -0,0 +1,3 @@
+export {MenuBarExample} from './menubar/menubar-example';
+export {MenuBarRTLExample} from './menubar-rtl/menubar-rtl-example';
+export {MenuBarDisabledExample} from './menubar-disabled/menubar-disabled-example';
diff --git a/src/components-examples/aria/menubar/menubar-disabled/menubar-disabled-example.html b/src/components-examples/aria/menubar/menubar-disabled/menubar-disabled-example.html
new file mode 100644
index 000000000000..f12ccbaa7379
--- /dev/null
+++ b/src/components-examples/aria/menubar/menubar-disabled/menubar-disabled-example.html
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+ article
+ New
+ ⌘N
+
+
+
+ folder
+ Open
+ ⌘O
+
+
+
+ file_copy
+ Make a copy
+
+
+
+
+
+ person_add
+ Share
+ arrow_right
+
+
+
+
+
+
+ person_add
+ Share with others
+
+
+
+ public
+ Publish to web
+
+
+
+
+
+
+ download
+ Download
+
+
+
+ print
+ Print
+
+
+
+
+
+ edit
+ Rename
+
+
+
+ delete
+ Move to trash
+
+
+
+
+
+
+
+
+
+
+
+ undo
+ Undo
+ ⌘Z
+
+
+
+ redo
+ Redo
+ ⌘Y
+
+
+
+
+
+ content_cut
+ Cut
+ ⌘X
+
+
+
+ content_copy
+ Copy
+ ⌘C
+
+
+
+ content_paste
+ Paste
+ ⌘V
+
+
+
+
+
+ find_replace
+ Find and replace
+ ⇧⌘H
+
+
+
+
+
+
+
+
+
+
+
+ check
+ Show print layout
+
+
+
+ check
+ Show ruler
+
+
+
+
+
+ Zoom in
+ ⌘+
+
+
+
+ Zoom out
+ ⌘-
+
+
+
+
+
+ Full screen
+
+
+
+
+
+
+
+
+
+
+
+ image
+ Image
+ arrow_right
+
+
+
+
+
+
+ upload
+ Upload from computer
+
+
+
+ search
+ Search the web
+
+
+
+ link
+ By URL
+
+
+
+
+
+
+ table_chart
+ Table
+
+
+
+ insert_chart
+ Chart
+ arrow_right
+
+
+
+
+
+
+ bar_chart
+ Bar
+
+
+
+ insert_chart
+ Column
+
+
+
+ show_chart
+ Line
+
+
+
+ pie_chart
+ Pie
+
+
+
+
+
+
+ horizontal_rule
+ Horizontal line
+
+
+
+
+
+
+
+
+
+
+
+ format_bold
+ Text
+ arrow_right
+
+
+
+
+
+
+ format_bold
+ Bold
+ ⌘B
+
+
+
+ format_italic
+ Italic
+ ⌘I
+
+
+
+ format_underlined
+ Underline
+ ⌘U
+
+
+
+ strikethrough_s
+ Strikethrough
+ ⇧⌘X
+
+
+
+
+
+ Size
+ arrow_right
+
+
+
+
+
+
+ Increase font size
+ ⇧⌘.
+
+
+
+ Decrease font size
+ ⇧⌘,
+
+
+
+
+
+
+
+
+
+ format_align_justify
+ Paragraph styles
+ arrow_right
+
+
+
+
+
+ Normal text
+ Heading 1
+ Heading 2
+
+
+
+
+
+ format_indent_increase
+ Align & indent
+ arrow_right
+
+
+
+
+
+
+ format_align_left
+ Align left
+
+
+
+ format_align_center
+ Align center
+
+
+
+ format_align_right
+ Align right
+
+
+
+ format_align_justify
+ Justify
+
+
+
+
+
+
+
+
diff --git a/src/components-examples/aria/menubar/menubar-disabled/menubar-disabled-example.ts b/src/components-examples/aria/menubar/menubar-disabled/menubar-disabled-example.ts
new file mode 100644
index 000000000000..ac86d74ba45f
--- /dev/null
+++ b/src/components-examples/aria/menubar/menubar-disabled/menubar-disabled-example.ts
@@ -0,0 +1,25 @@
+import {Component, viewChild} from '@angular/core';
+import {Menu, MenuBar, MenuContent, MenuItem} from '@angular/aria/menu';
+import {OverlayModule} from '@angular/cdk/overlay';
+
+/** @title Menu bar disabled example. */
+@Component({
+ selector: 'menubar-disabled-example',
+ templateUrl: 'menubar-disabled-example.html',
+ styleUrl: '../menubar.css',
+ imports: [Menu, MenuBar, MenuItem, MenuContent, OverlayModule],
+})
+export class MenuBarDisabledExample {
+ fileMenu = viewChild