Skip to content

Commit

Permalink
feat(components): bring back other experiements into index.html | bh |
Browse files Browse the repository at this point in the history
  • Loading branch information
denyo committed Feb 12, 2024
1 parent 2431e67 commit 2e0761b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/components/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,25 @@ <h1>Porsche Design System - Playground</h1>
</header>

<main>
<h2>base class composition works</h2>
<p-button>Hi</p-button>
<p-button loading>Ho</p-button>

<hr />

<h2>@use mixin composition works</h2>
<p-button-pure>Hi</p-button-pure>
<p-button-pure loading>Ho</p-button-pure>

<hr />

<h2>@use stencil component composition partially works</h2>
<p-switch>Hi</p-switch>
<p-switch loading>Ho</p-switch>
</main>

<script>
document.querySelectorAll('p-switch').forEach((el) =>
document.querySelectorAll('p-button,p-button-pure,p-switch').forEach((el) =>
el.addEventListener('click', ({ target }) => {
target.loading = !target.loading;
setTimeout(() => {
Expand Down

0 comments on commit 2e0761b

Please sign in to comment.