kopia lustrzana https://github.com/shoelace-style/shoelace
![]() * [RFC] Proof-of-concept commit for submenu support
This is a Request For Comments to seek directional guidance towards
implementing the submenu slot of menu-item.
Includes:
- SubmenuController to manage event listeners on menu-item.
- Example usage in menu-item documentation.
- Trivial tests to check rendering.
Outstanding questions include:
- Accessibility concerns. E.g. where to handle 'ArrowRight',
'ArrowLeft'?
- Should selection of menu-item denoting submenu be possible or
customizable?
- How to parameterize contained popup?
- Implementation concerns:
- Use of ref / id
- delegation of some rendering to the controller
- What to test
Related to [#620](https://github.com/shoelace-style/shoelace/issues/620).
* Update submenu-controller.ts
Removed extraneous `console.log()`.
* PoC working of ArrowRight to focus on submenu.
* Revert "PoC working of ArrowRight to focus on submenu."
(Didn't mean to publish this.)
This reverts commit
|
||
---|---|---|
.. | ||
alert.md | ||
animated-image.md | ||
animation.md | ||
avatar.md | ||
badge.md | ||
breadcrumb-item.md | ||
breadcrumb.md | ||
button-group.md | ||
button.md | ||
card.md | ||
carousel-item.md | ||
carousel.md | ||
checkbox.md | ||
color-picker.md | ||
copy-button.md | ||
details.md | ||
dialog.md | ||
divider.md | ||
drawer.md | ||
dropdown.md | ||
format-bytes.md | ||
format-date.md | ||
format-number.md | ||
icon-button.md | ||
icon.md | ||
image-comparer.md | ||
include.md | ||
input.md | ||
menu-item.md | ||
menu-label.md | ||
menu.md | ||
mutation-observer.md | ||
option.md | ||
popup.md | ||
progress-bar.md | ||
progress-ring.md | ||
qr-code.md | ||
radio-button.md | ||
radio-group.md | ||
radio.md | ||
range.md | ||
rating.md | ||
relative-time.md | ||
resize-observer.md | ||
select.md | ||
skeleton.md | ||
spinner.md | ||
split-panel.md | ||
switch.md | ||
tab-group.md | ||
tab-panel.md | ||
tab.md | ||
tag.md | ||
textarea.md | ||
tooltip.md | ||
tree-item.md | ||
tree.md | ||
visually-hidden.md |