Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Width and Height that wasn't working and add some extra props #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nachodd
Copy link

@nachodd nachodd commented Mar 21, 2024

Width and Height props weren't working at all. The width was fixed. Also added a size prop to configure both. Also, proving only with works anyway. Finally, added preserveAspectRatio prop, to configure that parameter on the SVG.

Fix issue with viewBox attribute (wrong casing)

Uses Vue's CSS v-bind to pass the variables to the CSS.

Width and Height props weren't working at all. The width was fixed. 
Also added a size prop to configure both. Also, proving only with works anyway. 
Finally, added preserveAspectRatio prop, to configure that parameter on the SVG.

Uses Vue's CSS v-bind to pass the variables to the CSS.
Copy link

netlify bot commented Mar 21, 2024

Deploy Preview for nuxt-mdi canceled.

Name Link
🔨 Latest commit 3b7fc66
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-mdi/deploys/65fc97e6f1e1120008554eda

Copy link

@jfm-GH jfm-GH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're a lifesaver! I just copy & pasted this into MdiIcon.vue and was able to use it.

Please merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants