Skip to content

Commit a56b40f

Browse files
Render app into root div (#237)
Fixes screen reader issue where content behind the cookie dialog is read out to the user.
1 parent 78d9e76 commit a56b40f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<script type="module" src="/src/main.ts"></script>
4444
</head>
4545

46-
<body style="overscroll-behavior-y: none; height: 100%"></body>
46+
<body style="overscroll-behavior-y: none; height: 100%">
47+
<div id="root" style="overscroll-behavior-y: none; height: 100%"></div>
48+
</body>
4749
</html>

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import App from './App.svelte';
88
import 'virtual:windi.css';
99

1010
const app = new App({
11-
target: document.body,
11+
target: document.getElementById('root')!,
1212
});
1313

1414
export default app;

0 commit comments

Comments
 (0)