Skip to content

Commit 6f7040e

Browse files
committed
fix(docs): resolve iOS Safari discovery popover stacking issue
Add #discovery-layer div at start of body for discovery component teleport target. Move DiscoveryHighlight and DiscoveryContent teleports to this layer. Revert DocsSearch to inline rendering (matches Settings/Ask AI pattern). iOS Safari renders fixed elements in DOM order even when z-index should take precedence. By placing discovery layer first in DOM, components render on top.
1 parent e38b4e4 commit 6f7040e

File tree

4 files changed

+377
-378
lines changed

4 files changed

+377
-378
lines changed

apps/docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link rel="icon" type="image/png" href="/0.png">
99
</head>
1010
<body>
11+
<div id="discovery-layer"></div>
1112
<div id="app"></div>
1213
<script type="module" src="./src/main.ts"></script>
1314
</body>

apps/docs/src/components/discovery/DiscoveryContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
</script>
154154

155155
<template>
156-
<Teleport v-if="isReady" to="body">
156+
<Teleport v-if="isReady" to="#discovery-layer">
157157
<div
158158
ref="content"
159159
v-bind="attrs"

apps/docs/src/components/discovery/DiscoveryHighlight.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
<template>
172172
<slot />
173173

174-
<Teleport to="body">
174+
<Teleport to="#discovery-layer">
175175
<Transition name="discovery-highlight">
176176
<div v-if="isVisible" class="fixed inset-0 pointer-events-none" style="z-index: 9998">
177177
<!-- Click-blocking layer for backdrop (when blocking is enabled) -->

0 commit comments

Comments
 (0)