Skip to content

Commit

Permalink
feat!: make content to be the default slot
Browse files Browse the repository at this point in the history
  • Loading branch information
mlopezFC committed Aug 25, 2021
1 parent acf8811 commit a35e82f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h4 slot="profile">User</h4>
<div slot="menu">
<p onclick="this.dispatchEvent(new CustomEvent('item-clicked', {bubbles: true}))">This is menu</p>
</div>
<div slot="content">
<div>
<vaadin-vertical-layout class="hamlet" theme="padding spacing" style="width: 100%; align-items: center; height: 100%;"><paper-card elevation="0" aria-label=""><div class="card-content"><span>Enter King</span></div></paper-card><paper-card class="claudius" elevation="1" aria-label="" style="align-self: flex-end;"><div class="card-content"><div><h5>Claudius</h5><span>
I have sent to seek him and to find the body.
How dangerous is it that this man goes loose!
Expand Down
2 changes: 1 addition & 1 deletion src/fc-applayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class FcAppLayoutElement extends ThemableElement {
<slot name="menu"></slot>
</paper-listbox>
</app-drawer>
<div id="content"><slot name="content"></slot></div>
<div id="content"><slot></slot></div>
</div>
`;
}
Expand Down

0 comments on commit a35e82f

Please sign in to comment.