diff --git a/examples/vanilla/control-elements/media-error-dialog.html b/examples/vanilla/control-elements/media-error-dialog.html
index ddba1e15e..84dc8df5d 100644
--- a/examples/vanilla/control-elements/media-error-dialog.html
+++ b/examples/vanilla/control-elements/media-error-dialog.html
@@ -59,7 +59,7 @@
Non existing mp4
>
-
+
diff --git a/src/js/media-container.ts b/src/js/media-container.ts
index a9d9a2205..9593af2b2 100644
--- a/src/js/media-container.ts
+++ b/src/js/media-container.ts
@@ -193,7 +193,7 @@ template.innerHTML = /*html*/ `
display: none;
}
- slot[name=top-layer]::slotted(*) {
+ slot[name=dialog]::slotted(*) {
z-index: 2;
}
@@ -220,7 +220,7 @@ template.innerHTML = /*html*/ `
${/* default, effectively "bottom-chrome" */ ''}
-
+
`;
const MEDIA_UI_ATTRIBUTE_NAMES = Object.values(MediaUIAttributes);