Skip to content

Commit

Permalink
Fixed styling error for svg path
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Riley committed Jun 18, 2021
1 parent 5002e62 commit c205d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-icon",
"version": "1.0.1",
"version": "1.0.2",
"description": "Icon component for Vue 3",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ export default {
"--sx": ["both", "horizontal"].includes(props.flip) ? "-1" : "1",
"--sy": ["both", "vertical"].includes(props.flip) ? "-1" : "1",
"--r": isNaN(props.rotate) ? props.rotate : props.rotate + "deg",
transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1))"
transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1))",
};
});
const defaults = computed(() => iconSettings[props.type] || iconSettings.default);
const sizeValue = computed(() => props.size || defaults.value.size);
const viewboxValue = computed(() => props.viewbox || defaults.value.viewbox);

return () => {
const path = h("path", { d: props.path, style: { color: "currentColor" } });
const path = h("path", { d: props.path, style: { fill: "currentColor" } });

return h(
"svg",
Expand Down

0 comments on commit c205d80

Please sign in to comment.