@shortfuse/materialdesignweb 0.7.4 → 0.7.5

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.
@@ -25,7 +25,7 @@ export default CustomElement
25
25
  delegatesFocus: true,
26
26
  })
27
27
  .observe({
28
- type: { value: 'button' },
28
+ type: { empty: 'button' },
29
29
  elevated: 'boolean',
30
30
  filled: 'string',
31
31
  outlined: 'boolean',
@@ -57,7 +57,6 @@ export default CustomElement
57
57
 
58
58
  shape.setAttribute('filled', '{filled}');
59
59
  control.setAttribute('role', 'button');
60
- control.setAttribute('type', 'button');
61
60
  },
62
61
  })
63
62
  .css`
@@ -139,7 +139,6 @@ export default CustomElement
139
139
  <slot id=slot></slot>
140
140
  `);
141
141
 
142
- control.setAttribute('type', 'checkbox');
143
142
  // Indeterminate must be manually expressed for ARIA
144
143
  control.setAttribute('aria-checked', '{_ariaChecked}');
145
144
  },
@@ -33,7 +33,6 @@ export default Chip
33
33
  icon.setAttribute('ink', '{iconInk}');
34
34
 
35
35
  control.removeAttribute('role');
36
- control.setAttribute('type', 'checkbox');
37
36
 
38
37
  outline.removeAttribute('ink');
39
38
  outline.removeAttribute('color');
@@ -32,8 +32,6 @@ export default CustomElement
32
32
  </div>
33
33
  <slot id=slot></slot>
34
34
  `);
35
-
36
- control.setAttribute('type', 'radio');
37
35
  },
38
36
  })
39
37
  .css`
@@ -29,7 +29,6 @@ export default Button
29
29
  outline.setAttribute('inner-segmented-button', '{innerSegmentedButton}');
30
30
  outline.setAttribute('shape-start', '{shapeStart}');
31
31
  outline.setAttribute('shape-end', '{shapeEnd}');
32
- control.setAttribute('type', 'radio');
33
32
  control.setAttribute('role', 'option');
34
33
  control.setAttribute('aria-checked', inline(
35
34
  ({ type, checked }) => (type === 'checkbox' ? `${(!!checked)}` : null),
@@ -194,7 +194,6 @@ export default CustomElement
194
194
  </div>
195
195
  `);
196
196
  label.removeAttribute('aria-labelledby');
197
- control.setAttribute('type', 'range');
198
197
  },
199
198
  valueChanged(oldValue, newValue) {
200
199
  this._previewValue = newValue;
@@ -43,7 +43,6 @@ export default CustomElement
43
43
  </mdw-switch-icon>
44
44
  <slot id=slot></slot>
45
45
  `);
46
- control.setAttribute('type', 'checkbox');
47
46
  control.setAttribute('role', 'switch');
48
47
  },
49
48
  })