Closed kevinreber closed 1 year ago
Yes, you are missing styles that render the overlay over the entire page, which you must provide manually (not all overlays are equal). For example, to cover the entire screen you likely want the following styles:
position: fixed;
inset: 0;
Summary
I add some styling to![CleanShot 2023-07-12 at 20 11 44@2x](https://github.com/pacocoursey/cmdk/assets/42260999/a2fc888f-d584-4a28-9e83-0d91c4baa6c4)
[cmdk-overlay]
as recommended in the docs and I'm seeing the styling being applied in the DOM, but I do not see the div for[cmdk-overlay]
anywhere in the UI (screenshot)Here's a short snippet of my code
Am I missing something?
Code Sandbox
Adding a Code Sandbox where I am experiencing the same issue Code Sandbox link: https://codesandbox.io/s/cmdk-dialog-forked-rrh7vc![CleanShot 2023-07-13 at 12 09 51@2x](https://github.com/pacocoursey/cmdk/assets/42260999/009450bd-6c4c-4ca3-bfcf-93e929e5c57d)