@brightspace-ui/core 3.36.2 → 3.36.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -229,6 +229,24 @@
229
229
  </template>
230
230
  </d2l-demo-snippet>
231
231
 
232
+ <h2>Dialog (full-height with iframe)</h2>
233
+
234
+ <d2l-demo-snippet>
235
+ <template>
236
+ <d2l-button id="openFullHeight">Show Dialog</d2l-button>
237
+ <d2l-dialog id="dialogFullHeight" full-height title-text="Dialog Title">
238
+ <iframe id="iframeFullHeight" style="box-sizing: border-box; display: block; height: 100%; width: 100%;"></iframe>
239
+ <d2l-button slot="footer" primary data-dialog-action="ok">Click Me!</d2l-button><d2l-button slot="footer" data-dialog-action>Cancel</d2l-button>
240
+ </d2l-dialog>
241
+ <script>
242
+ document.querySelector('#iframeFullHeight').src = window.location.href.substring(0, window.location.href.indexOf('/components'));
243
+ document.querySelector('#openFullHeight').addEventListener('click', () => {
244
+ document.querySelector('#dialogFullHeight').opened = true;
245
+ });
246
+ </script>
247
+ </template>
248
+ </d2l-demo-snippet>
249
+
232
250
  </d2l-demo-page>
233
251
  </body>
234
252
  </html>
@@ -136,6 +136,11 @@ export const dialogStyles = css`
136
136
  position: relative; /* make this the positioned parent for absolute positioned elements like d2l-template-primary-secondary */
137
137
  }
138
138
 
139
+ :host([full-height]) .d2l-dialog-content > div {
140
+ box-sizing: border-box;
141
+ height: 100%;
142
+ }
143
+
139
144
  .d2l-dialog-outer-scroll .d2l-dialog-content {
140
145
  overflow: auto;
141
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.36.2",
3
+ "version": "3.36.4",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",