Skip to content

Commit

Permalink
fix(html): add prestyling for unregistered host-app
Browse files Browse the repository at this point in the history
  • Loading branch information
waldronmatt committed Apr 9, 2024
1 parent 0426fba commit 92b1ac0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/lit-override/src/html/dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
</head>

<body>
<style>
host-app:not(:defined) {
display: block;
height: 100vh;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
</style>
<h1>Override markup and styles on dynamically generated components!</h1>
<host-app></host-app>
<br />
Expand Down
8 changes: 8 additions & 0 deletions apps/lit-override/src/html/lazy-loaded.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
</head>

<body>
<style>
host-app:not(:defined) {
display: block;
height: 100vh;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
</style>
<template id="childTemplate">
<slot name="heading"></slot>
<slot name="sub-heading"></slot>
Expand Down

0 comments on commit 92b1ac0

Please sign in to comment.