@brightspace-ui/core 3.36.3 → 3.36.5

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>
@@ -152,7 +152,7 @@ export const dialogStyles = css`
152
152
  .d2l-dialog-footer {
153
153
  box-sizing: border-box;
154
154
  flex: none;
155
- padding: 30px 30px 12px 30px; /* 18px margin below footer children */
155
+ padding: 18px 30px 0 30px; /* 18px margin below footer children */
156
156
  position: relative; /* stack footer overflow shadow on top of content */
157
157
  }
158
158
 
@@ -183,6 +183,7 @@ export const dialogStyles = css`
183
183
  }
184
184
 
185
185
  @media (max-width: 615px), (max-height: 420px) and (max-width: 900px) {
186
+
186
187
  .d2l-dialog-header {
187
188
  padding: 14px 20px 16px 20px;
188
189
  }
@@ -198,18 +199,19 @@ export const dialogStyles = css`
198
199
  padding: 0 20px;
199
200
  }
200
201
  .d2l-dialog-footer {
201
- padding: 20px 20px 2px 20px;
202
+ padding: 18px 20px 0 20px;
202
203
  }
203
204
  .d2l-dialog-outer.d2l-dialog-fullscreen-mobile {
204
205
  margin: 0 !important;
205
206
  min-width: calc(var(--d2l-vw, 1vw) * 100);
206
- top: 42px;
207
+ top: 5%;
207
208
  }
208
209
  :host(:not([in-iframe])) dialog.d2l-dialog-outer.d2l-dialog-fullscreen-mobile,
209
210
  :host(:not([in-iframe])) div.d2l-dialog-outer.d2l-dialog-fullscreen-mobile {
210
- height: calc(var(--d2l-vh, 1vh) * 100 - 42px);
211
- min-height: calc(var(--d2l-vh, 1vh) * 100 - 42px);
211
+ height: calc(var(--d2l-vh, 1vh) * 95);
212
+ min-height: calc(var(--d2l-vh, 1vh) * 95);
212
213
  }
214
+
213
215
  }
214
216
 
215
217
  @media (prefers-reduced-motion: reduce) {
@@ -83,6 +83,15 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
83
83
  padding: 0 0 5px 0;
84
84
  }
85
85
 
86
+ @media (max-width: 615px), (max-height: 420px) and (max-width: 900px) {
87
+
88
+ .d2l-dialog-header,
89
+ :host([critical]) .d2l-dialog-header {
90
+ padding-bottom: 9px;
91
+ }
92
+
93
+ }
94
+
86
95
  `];
87
96
  }
88
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.36.3",
3
+ "version": "3.36.5",
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",