Skip to content

Commit 4ebb8c7

Browse files
authored
Merge pull request #2529 from hashicorp/showcase-dropdown-add-demo-100p-width
Showcase - Added extra demo to `Dropdown` for `width="100%"`
2 parents c0a23c8 + 64869e7 commit 4ebb8c7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

showcase/app/templates/components/dropdown.hbs

+13
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,19 @@
15391539
</Hds::Dropdown>
15401540
</div>
15411541
</SG.Item>
1542+
<SG.Item @label="With 100% width">
1543+
<div class="shw-component-dropdown-fixed-height-container">
1544+
<Hds::Dropdown @listPosition="bottom-left" @width="100%" as |D|>
1545+
<D.ToggleButton @color="secondary" @text="Menu" />
1546+
<D.Interactive @href="#">
1547+
Lorem ipsum dolor sit amet
1548+
</D.Interactive>
1549+
<D.Interactive @href="#">
1550+
Consectetur adipisicing elit
1551+
</D.Interactive>
1552+
</Hds::Dropdown>
1553+
</div>
1554+
</SG.Item>
15421555
<SG.Item as |SG|>
15431556
<SG.Label>Using <code>preserveContentInDom</code> argument</SG.Label>
15441557
<div class="shw-component-dropdown-fixed-height-container">

0 commit comments

Comments
 (0)