diff --git a/docs/content/docs/4.migration-guide/1.v0-to-v1.md b/docs/content/docs/4.migration-guide/1.v0-to-v1.md index a4d0f404..5e49c411 100644 --- a/docs/content/docs/4.migration-guide/1.v0-to-v1.md +++ b/docs/content/docs/4.migration-guide/1.v0-to-v1.md @@ -414,6 +414,31 @@ The same rename applies to ``{lang="html"}: its exp }) ``` +#### ``{lang="html"} DOM Structure + +The overlay view now renders an extra wrapper element. The structure is `anchor div → content div → slot`, where the anchor handles positioning (Google Maps reparents it into a pane on mount) and the content div carries `data-state` plus any forwarded `class`/attrs. + +CSS that targets `[data-state="open"]` on the slot's root element should move to a class on the ``{lang="html"} itself, since the data-state attribute now lives on the internal content div rather than propagating into the slot's first child. + +```diff + + + +``` + ### Google Maps Static Placeholder ([#673](https://github.com/nuxt/scripts/pull/673)) v1 extracts the built-in static map placeholder into a standalone [``{lang="html"}](/scripts/google-maps/api/static-map) component. This removes the following props from ``{lang="html"}: diff --git a/packages/script/src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue b/packages/script/src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue index e1e79147..113f8420 100644 --- a/packages/script/src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue +++ b/packages/script/src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue @@ -90,7 +90,7 @@ export interface ScriptGoogleMapsOverlayViewExpose {