diff --git a/elements/rh-menu/demo/color-context.html b/elements/rh-menu/demo/color-context.html new file mode 100644 index 0000000000..4ad61d55e1 --- /dev/null +++ b/elements/rh-menu/demo/color-context.html @@ -0,0 +1,19 @@ + + + + + Toggle Links + Link1 + Link2 + Link3 + Link4 + + + + + diff --git a/elements/rh-menu/demo/demo.css b/elements/rh-menu/demo/demo.css deleted file mode 100644 index c3ec25926d..0000000000 --- a/elements/rh-menu/demo/demo.css +++ /dev/null @@ -1,11 +0,0 @@ -rh-context-provider { - padding: var(--rh-space-xl, 24px) var(--rh-space-4xl, 64px); -} - -a { - padding: 5px; -} - -[color-palette="darkest"] a { - color: white; -} diff --git a/elements/rh-menu/demo/position-left.html b/elements/rh-menu/demo/position-left.html new file mode 100644 index 0000000000..79faa7712e --- /dev/null +++ b/elements/rh-menu/demo/position-left.html @@ -0,0 +1,15 @@ + + + Toggle Settings + Menuitem1 + Menuitem2 + Menuitem3 + Menuitem4 + + + + diff --git a/elements/rh-menu/demo/position-right.html b/elements/rh-menu/demo/position-right.html new file mode 100644 index 0000000000..2a19b66cd2 --- /dev/null +++ b/elements/rh-menu/demo/position-right.html @@ -0,0 +1,13 @@ + + Toggle Links + Link1 + Link2 + Link3 + Link4 + + + + diff --git a/elements/rh-menu/demo/position-top.html b/elements/rh-menu/demo/position-top.html new file mode 100644 index 0000000000..4890d9d12a --- /dev/null +++ b/elements/rh-menu/demo/position-top.html @@ -0,0 +1,15 @@ + + Toggle Menu + Menuitem1 + Menuitem2 + Menuitem3 + Menuitem4 + + + + diff --git a/elements/rh-menu/demo/positioning.html b/elements/rh-menu/demo/positioning.html deleted file mode 100644 index 43bd13fb9f..0000000000 --- a/elements/rh-menu/demo/positioning.html +++ /dev/null @@ -1,104 +0,0 @@ - -

Default, positioned bottom

-

- - Toggle Menu - Menuitem1 - Menuitem2 - Menuitem3 - Menuitem4 - -

-

Positioned right or left

-

- - Toggle Links - Link1 - Link2 - Link3 - Link4 - - - Toggle Settings - Menuitem1 - Menuitem2 - Menuitem3 - Menuitem4 - -

-

Positioned top -

- - Toggle Links - Link1 - Link2 - Link3 - Link4 - - - Settings - Menuitem1 - Menuitem2 - Menuitem3 - Menuitem4 - -

-

- - Toggle Menu - Menuitem1 - Menuitem2 - Menuitem3 - Menuitem4 - -

-
- -

Default, positioned bottom

-

- - Toggle Menu - Menuitem1 - Menuitem2 - Menuitem3 - Menuitem4 - -

-

Positioned right or left

-

- - Toggle Links - Link1 - Link2 - Link3 - Link4 - - - Toggle Settings - Menuitem1 - Menuitem2 - Menuitem3 - Menuitem4 - -

-

Positioned top

-

- - Toggle Menu - Menuitem1 - Menuitem2 - Menuitem3 - Menuitem4 - -

-
- - - - diff --git a/elements/rh-menu/demo/rh-menu.html b/elements/rh-menu/demo/rh-menu.html index a50e70aa9d..57439f7bb0 100644 --- a/elements/rh-menu/demo/rh-menu.html +++ b/elements/rh-menu/demo/rh-menu.html @@ -7,7 +7,6 @@ diff --git a/elements/rh-menu/demo/rh-menu.js b/elements/rh-menu/demo/rh-menu.js deleted file mode 100644 index 6c7f801474..0000000000 --- a/elements/rh-menu/demo/rh-menu.js +++ /dev/null @@ -1,5 +0,0 @@ -import 'element-internals-polyfill'; -import '@rhds/elements/rh-menu/rh-menu.js'; -import '@rhds/elements/rh-context-provider/rh-context-provider.js'; -import '@rhds/elements/rh-button/rh-button.js'; -import '@rhds/elements/rh-tooltip/rh-tooltip.js';