File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change 11import type { ErrorPayload } from 'types/hmrPayload'
22
3+ // set :host styles to make playwright detect the element as visible
34const template = /*html*/ `
45<style>
56:host {
7+ position: fixed;
8+ top: 0;
9+ left: 0;
10+ width: 100%;
11+ height: 100%;
12+ }
13+
14+ .backdrop {
615 position: fixed;
716 z-index: 99999;
817 top: 0;
@@ -99,15 +108,17 @@ code {
99108 cursor: pointer;
100109}
101110</style>
102- <div class="window">
103- <pre class="message"><span class="plugin"></span><span class="message-body"></span></pre>
104- <pre class="file"></pre>
105- <pre class="frame"></pre>
106- <pre class="stack"></pre>
107- <div class="tip">
108- Click outside or fix the code to dismiss.<br>
109- You can also disable this overlay by setting
110- <code>server.hmr.overlay</code> to <code>false</code> in <code>vite.config.js.</code>
111+ <div class="backdrop">
112+ <div class="window">
113+ <pre class="message"><span class="plugin"></span><span class="message-body"></span></pre>
114+ <pre class="file"></pre>
115+ <pre class="frame"></pre>
116+ <pre class="stack"></pre>
117+ <div class="tip">
118+ Click outside or fix the code to dismiss.<br>
119+ You can also disable this overlay by setting
120+ <code>server.hmr.overlay</code> to <code>false</code> in <code>vite.config.js.</code>
121+ </div>
111122 </div>
112123</div>
113124`
You can’t perform that action at this time.
0 commit comments