+
Example content of custom modal element
+
this.onClickDone()}>
+
+ `;
+ }
+
+ static override styles = [css`
+ :host {
+ background: #eaeaea;
+ display: block;
+ box-sizing:border-box;
+ }
+
+ #modal {
+ box-sizing:border-box;
+ }
+
+ p {
+ margin:0;
+ padding:0;
+ }
+
+ `];
+}
+
+export default UmbExampleModalViewElement
+
+declare global {
+ interface HTMLElementTagNameMap {
+ 'example-modal-view': UmbExampleModalViewElement;
+ }
+}
diff --git a/examples/custom-modal/index.ts b/examples/custom-modal/index.ts
new file mode 100644
index 0000000000..2ddf119f38
--- /dev/null
+++ b/examples/custom-modal/index.ts
@@ -0,0 +1,29 @@
+import type { ManifestDashboard } from '@umbraco-cms/backoffice/dashboard';
+import type { ManifestModal } from '@umbraco-cms/backoffice/modal';
+
+const demoModal : ManifestModal = {
+ type: 'modal',
+ name: 'Example Custom Modal Element',
+ alias: 'example.modal.custom.element',
+ js: () => import('./example-modal-view.element.js'),
+}
+
+const demoModalsDashboard : ManifestDashboard = {
+ type: 'dashboard',
+ name: 'Example Custom Modal Dashboard',
+ alias: 'example.dashboard.custom.modal.element',
+ element: () => import('./example-custom-modal-dashboard.element.js'),
+ weight: 900,
+ meta: {
+ label: 'Custom Modal',
+ pathname: 'custom-modal',
+ },
+ conditions : [
+ {
+ alias: 'Umb.Condition.SectionAlias',
+ match: 'Umb.Section.Content'
+ }
+ ]
+}
+
+export default [demoModal,demoModalsDashboard];
diff --git a/examples/modal-routed/index.ts b/examples/modal-routed/index.ts
index 5aca09fe79..3b2f6ee704 100644
--- a/examples/modal-routed/index.ts
+++ b/examples/modal-routed/index.ts
@@ -1,14 +1,5 @@
-import type { ManifestDashboard, ManifestModal } from '@umbraco-cms/backoffice/extension-registry';
-
-// const section : ManifestSection = {
-// type: "section",
-// alias: 'demo.section',
-// name: "Demo Section",
-// meta: {
-// label: "Demo",
-// pathname: "demo"
-// }
-// }
+import type { ManifestDashboard } from '@umbraco-cms/backoffice/dashboard';
+import type { ManifestModal } from '@umbraco-cms/backoffice/modal';
const dashboard: ManifestDashboard = {
type: 'dashboard',
diff --git a/src/packages/core/components/backoffice-modal-container/backoffice-modal-container.element.ts b/src/packages/core/components/backoffice-modal-container/backoffice-modal-container.element.ts
index 8ce49a89a3..61cd3892a0 100644
--- a/src/packages/core/components/backoffice-modal-container/backoffice-modal-container.element.ts
+++ b/src/packages/core/components/backoffice-modal-container/backoffice-modal-container.element.ts
@@ -13,7 +13,7 @@ export class UmbBackofficeModalContainerElement extends UmbLitElement {
@state()
_modals: Array