@shortfuse/materialdesignweb 0.7.1-2 → 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.
- package/components/Dialog.js +3 -3
- package/components/RadioIcon.js +1 -6
- package/components/SegmentedButton.js +0 -2
- package/components/Shape.js +7 -1
- package/core/CustomElement.js +1 -1
- package/dist/index.min.js +294 -0
- package/mixins/ShapeMixin.js +9 -10
- package/mixins/TextFieldMixin.js +21 -10
- package/mixins/TooltipTriggerMixin.js +4 -5
- package/package.json +13 -8
- package/index.js +0 -77
package/components/Dialog.js
CHANGED
|
@@ -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
|
-
|
|
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}>
|
package/components/RadioIcon.js
CHANGED
|
@@ -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))
|
package/components/Shape.js
CHANGED
|
@@ -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;
|
package/core/CustomElement.js
CHANGED