mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
Exported the popup part of the dropdown component (#2078)
This commit is contained in:
@@ -34,7 +34,8 @@ import type SlMenu from '../menu/menu.js';
|
||||
* @event sl-hide - Emitted when the dropdown closes.
|
||||
* @event sl-after-hide - Emitted after the dropdown closes and all animations are complete.
|
||||
*
|
||||
* @csspart base - The component's base wrapper.
|
||||
* @csspart base - The component's base wrapper, an `<sl-popup>` element.
|
||||
* @csspart base__popup - The popup's exported `popup` part. Use this to target the tooltip's popup container.
|
||||
* @csspart trigger - The container that wraps the trigger.
|
||||
* @csspart panel - The panel that gets shown when the dropdown is open.
|
||||
*
|
||||
@@ -406,6 +407,7 @@ export default class SlDropdown extends ShoelaceElement {
|
||||
return html`
|
||||
<sl-popup
|
||||
part="base"
|
||||
exportparts="popup:base__popup"
|
||||
id="dropdown"
|
||||
placement=${this.placement}
|
||||
distance=${this.distance}
|
||||
|
||||
Reference in New Issue
Block a user