When Pick content is enabled, and you have some val content that is covered by another element such as a modal, boxes will still appear around the non-visible content.
Steps to reproduce:
Create a new val project with any project name:
Edit the src/app/page.tsx file and in the Home function:
Replace this:
<main className="max-w-screen-lg mx-auto p-4">
{pageContent.sections.map((section) => (
<Section key={section.type} section={section} />
))}
</main>
With this:
<main className="max-w-screen-lg mx-auto p-4">
{pageContent.sections.map((section) => (
<Section key={section.type} section={section} />
))}
<div className="fixed flex inset-0 bg-black/50">
<div className="m-auto p-32 bg-gray-700">{pageContent.description}</div>
</div>
</main>
- Start the project:
npm run dev
- Go to
http://localhost:3000/val
- Click enter preview mode.
- Click
Pick content
The result should be something like this:

When
Pick contentis enabled, and you have some val content that is covered by another element such as a modal, boxes will still appear around the non-visible content.Steps to reproduce:
Create a new val project with any project name:
cd my-val-appEdit the
src/app/page.tsxfile and in the Home function:Replace this:
With this:
npm run devhttp://localhost:3000/valPick contentThe result should be something like this: