Skip to content

[Toolbar] Add support for <sl-menu-button> #1996

@fransdeboer

Description

@fransdeboer

Provide a general summary of the issue here

when an sl-menu-button is added to the actions slot ofsl-panelan error is thrown

tool-bar.js:140 Unknown element type: SL-MENU-BUTTON in sl-tool-bar. Only sl-button elements are allowed.

🤔 Expected Behavior?

make it possible to add a menu button in the panel actions slot, to support this design

Image

😯 Current Behavior

tool-bar.js:140 Unknown element type: SL-MENU-BUTTON in sl-tool-bar. Only sl-button elements are allowed.

💁 Possible Solution

No response

🖥️ Steps to Reproduce

<sl-menu-button slot="actions" size="md" variant="primary" fill="outline" aria-label="Label">
 <sl-menu-item>1</sl-menu-item>
 <sl-menu-item>2</sl-menu-item>
</sl-menu-button>

What browsers are you seeing the problem on? (only for bugs in code)

Chrome

If other, please specify.

No response

What operating system are you using?

WSL

👤 Your name

Frans de Boer

🧢 Your product/team

Magister

🎨 Your Theme(s)

Magister

Metadata

Metadata

Assignees

Type

Projects

Status

✈️ Released

Relationships

None yet

Development

No branches or pull requests

Issue actions