-
Notifications
You must be signed in to change notification settings - Fork 133
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
Vue component considers 0 (for rotation) and md (for size) despite them being legitimate values #493
Comments
This a temporary fix (to remove the warning) might be to just add 0 to the list of expected values by the vue component, this would add a Another way might be to implement (Custom fix)[https://docs.fontawesome.com/web/style/rotate#custom-rotation] for the rotation prop... this might be a more involved patch. I'd be happy to write a patch |
Would it be possible for the component to just not add Line 5 in 95557e3
Something like:
Since the object definition already handles if those attributes are null, this should accomplish the goal without adding extra classes. Thoughts? |
I suppose you could also just handle this in the object key-value assignments and avoid the extra variables.
|
You're right |
Yes, this looks nice, but Did you mean to negate this like
? |
Yes, good catch.
|
The vue component throws a warning when rotation is 0 or size is md, making it difficult to determine those values programmatically. Having those as defaults is reasonable, but the component should also accept those values explicitly.
<FontAwesomeIcon />
shouldn't consider 0 (for rotation) or 'md' (for size) as invalid prop values.For example:
The text was updated successfully, but these errors were encountered: