Skip to content

Commit 07cd5c0

Browse files
authored
use autosave rhs for spec (#2143)
* refactor to use prerendered and introduce autosave * use prerendering * load card from the root of spec preview and enable auto save * fix test * get test to work for auto save * fix lint * fix lint * Fix lint and loading state to be more clear * fix lint and remove stale loading * fix scrolling issue * fix loading on title * remove unnecessary console.log
1 parent 8dd91df commit 07cd5c0

File tree

3 files changed

+233
-140
lines changed

3 files changed

+233
-140
lines changed

Diff for: packages/base/spec.gts

+3-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ export class Spec extends CardDef {
147147
<BookOpenText width='20' height='20' role='presentation' />
148148
<h2 id='readme'>Read Me</h2>
149149
</header>
150-
<@fields.readMe />
150+
<div data-test-readme>
151+
<@fields.readMe />
152+
</div>
151153
</section>
152154
<section class='examples section'>
153155
<header class='row-header' aria-labelledby='examples'>

0 commit comments

Comments
 (0)