Version 1
[yaffs-website] / web / core / modules / outside_in / templates / outside-in-page-wrapper.html.twig
diff --git a/web/core/modules/outside_in/templates/outside-in-page-wrapper.html.twig b/web/core/modules/outside_in/templates/outside-in-page-wrapper.html.twig
new file mode 100644 (file)
index 0000000..b224deb
--- /dev/null
@@ -0,0 +1,20 @@
+{#
+/**
+ * @file
+ * Default theme implementation for a page wrapper.
+ *
+ * For consistent wrapping to {{ page }} render in all themes. The
+ * "data-off-canvas-main-canvas" attribute is required by the off-canvas dialog.
+ * It cannot be removed without breaking the off-canvas dialog functionality.
+ *
+ * Available variables:
+ * - children: Contains the child elements of the page.
+ *
+ * @ingroup themeable
+ */
+#}
+{% if children %}
+  <div class="dialog-off-canvas__main-canvas" data-off-canvas-main-canvas >
+    {{ children }}
+  </div>
+{% endif %}