@@ -70,7 +70,7 @@ import {
7070 * `has-detail` | Set when the detail content is provided and visible.
7171 * `has-detail-placeholder` | Set when the detail placeholder content is provided.
7272 * `overlay` | Set when columns don't fit and the detail is shown as an overlay.
73- * `overlay-containment` | Set to `layout` or `viewport `.
73+ * `overlay-containment` | Set to `layout` or `page `.
7474 *
7575 * The following custom CSS properties are available for styling:
7676 *
@@ -167,7 +167,7 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
167167 /**
168168 * Defines the containment of the detail area when the layout is in
169169 * overlay mode. When set to `layout`, the overlay is confined to the
170- * layout. When set to `viewport `, the overlay is confined to the
170+ * layout. When set to `page `, the overlay is confined to the
171171 * browser's viewport. Defaults to `layout`.
172172 *
173173 * @attr {string} overlay-containment
@@ -218,8 +218,8 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
218218 /** @protected */
219219 render ( ) {
220220 const isOverlay = this . hasAttribute ( 'has-detail' ) && this . hasAttribute ( 'overlay' ) ;
221- const isViewport = isOverlay && this . overlayContainment === 'viewport ' ;
222- const isLayoutContained = isOverlay && ! isViewport ;
221+ const isPage = isOverlay && this . overlayContainment === 'page ' ;
222+ const isLayoutContained = isOverlay && ! isPage ;
223223
224224 return html `
225225 < div id ="backdrop " part ="backdrop " @click ="${ this . __onBackdropClick } "> </ div >
@@ -233,7 +233,7 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
233233 id ="detail "
234234 part ="detail "
235235 role ="${ isOverlay ? 'dialog' : nothing } "
236- aria-modal ="${ isViewport ? 'true' : nothing } "
236+ aria-modal ="${ isPage ? 'true' : nothing } "
237237 @keydown ="${ this . __onDetailKeydown } "
238238 >
239239 < slot name ="detail " @slotchange ="${ this . __onSlotChange } "> </ slot >
0 commit comments