@momentum-design/components 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ const styles = [
6
6
  :host {
7
7
  --mdc-icon-fill-color: currentColor;
8
8
  }
9
- svg {
9
+ :host::part(icon) {
10
10
  height: 100%;
11
11
  width: 100%;
12
12
  fill: var(--mdc-icon-fill-color);
@@ -17,6 +17,7 @@ const dynamicSVGImport = async (url, name, fileExtension) => {
17
17
  const iconResponse = await response.text();
18
18
  const returnValue = new DOMParser().parseFromString(iconResponse, 'text/html').body.children[0];
19
19
  returnValue.setAttribute('data-name', name);
20
+ returnValue.setAttribute('part', 'icon');
20
21
  return returnValue;
21
22
  };
22
23
  export { dynamicSVGImport };
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "@momentum-design/tokens": "*",
36
36
  "lit": "^3.2.0"
37
37
  },
38
- "version": "0.10.2"
38
+ "version": "0.10.3"
39
39
  }