Skip to content

Commit

Permalink
simplify avatar example
Browse files Browse the repository at this point in the history
  • Loading branch information
mucsi96 committed May 5, 2024
1 parent 1fc7e3e commit a7cbc35
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/Avatar/Avatar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ const meta: Meta = {
html`<header bt>
<nav>
<a href="/"><h1 bt>App</h1></a>
<section>
<button bt-avatar id="avatar" popovertarget="avatar-popover">
JD
</button>
<div popover bt id="avatar-popover">
<ul bt-dropdown-menu>
<li bt-separated>
<p>John Doe</p>
<p>[email protected]</p>
</li>
<li><button type="button">Sign out</button></li>
</ul>
</div>
</section>
<button bt-avatar id="avatar" popovertarget="avatar-popover">
JD
</button>
<div popover bt id="avatar-popover">
<ul bt-dropdown-menu>
<li bt-separated>
<p>John Doe</p>
<p>[email protected]</p>
</li>
<li><button type="button">Sign out</button></li>
</ul>
</div>
</nav>
</header>
<div style="min-height: 50px"></div>`,
Expand Down

0 comments on commit a7cbc35

Please sign in to comment.