mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Remove open from ha-dropdown (#28037)
This commit is contained in:
@@ -11,7 +11,7 @@ A compact, accessible dropdown menu for choosing actions or settings. `ha-dropdo
|
|||||||
### Example usage (composition)
|
### Example usage (composition)
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<ha-dropdown open>
|
<ha-dropdown>
|
||||||
<ha-button slot="trigger" with-caret>Dropdown</ha-button>
|
<ha-button slot="trigger" with-caret>Dropdown</ha-button>
|
||||||
|
|
||||||
<ha-dropdown-item>
|
<ha-dropdown-item>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export class DemoHaDropdown extends LitElement {
|
|||||||
<div class=${mode}>
|
<div class=${mode}>
|
||||||
<ha-card header="ha-button in ${mode}">
|
<ha-card header="ha-button in ${mode}">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<ha-dropdown open>
|
<ha-dropdown>
|
||||||
<ha-button slot="trigger" with-caret>Dropdown</ha-button>
|
<ha-button slot="trigger" with-caret>Dropdown</ha-button>
|
||||||
|
|
||||||
<ha-dropdown-item>
|
<ha-dropdown-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user