@shortfuse/materialdesignweb 0.7.1-3 → 0.7.1-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -251,11 +251,11 @@ export default CustomElement
251
251
  .expressions({
252
252
  cancelAutoFocus({ default: d }) { return d === 'cancel'; },
253
253
  confirmAutoFocus({ default: d }) { return d === 'confirm'; },
254
+ _ariaHidden({ open }) { return (open ? 'false' : 'true'); },
254
255
  })
255
256
  .html/* html */`
256
- <dialog id=dialog
257
- ${supportsHTMLDialogElement ? 'aria-model=true' : ''}
258
- role=dialog aria-hidden=${({ open }) => (open ? 'false' : 'true')}
257
+ <dialog id=dialog aria-modal=true role=dialog
258
+ aria-hidden={_ariaHidden}
259
259
  aria-labelledby=headline aria-describedby=slot>
260
260
  <div _if={open} id=scrim aria-hidden=true></div>
261
261
  <mdw-surface id=surface open={open} icon={icon} elevation={elevation} color={color} ink={ink} outlined={outlined}>
@@ -38,6 +38,7 @@ export default CustomElement
38
38
  --mdw-ink: rgb(var(--mdw-color__primary));
39
39
  /* Use CSS Variables to force filter to reapply (Chrome Bug) */
40
40
  --color: rgb(var(--mdw-color__on-surface-variant));
41
+ --mdw-shape__size: var(--mdw-shape__full);
41
42
  position: relative;
42
43
 
43
44
  display: inline-block;
@@ -50,12 +51,6 @@ export default CustomElement
50
51
  transition: opacity 200ms;
51
52
  }
52
53
 
53
- .shape {
54
- --mdw-shape__size: var(--mdw-shape__full);
55
- position: absolute;
56
- inset: 0;
57
- }
58
-
59
54
  #outline {
60
55
  filter:
61
56
  drop-shadow(1px 0px 0px var(--color))
@@ -61,8 +61,6 @@ export default Button
61
61
 
62
62
  :host([inner-segmented-button]) {
63
63
  --mdw-shape__size: 0px;
64
- --mdw-shape__rounded: 1;
65
- --mdw-shape__mask-border-source: none;
66
64
  }
67
65
 
68
66
  #outline {
@@ -50,9 +50,15 @@ export default Box
50
50
  background-color: transparent;
51
51
  }
52
52
 
53
-
54
53
  @supports(-webkit-mask-box-image: none) {
55
54
  :host {
55
+ -webkit-mask-box-image: var(--mdw-shape__mask-border-source)
56
+ 8 fill /
57
+ var(--mdw-shape__size)
58
+ stretch;
59
+
60
+ -webkit-mask: var(--mdw-shape__mask);
61
+
56
62
  transition-duration: 200ms, 200ms, 200ms;
57
63
  transition-property: background-color, color, -webkit-mask-box-image-width;
58
64
  will-change: background-color, color, -webkit-mask-box-image;
@@ -194,7 +194,7 @@ export default class CustomElement extends ICustomElement {
194
194
  */
195
195
  static extend() {
196
196
  // @ts-expect-error Can't cast T
197
- return class ExtendedClass extends this {};
197
+ return class extends this {};
198
198
  }
199
199
 
200
200
  /**