Skip to content

avatarUpload Logo #132

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

Merged
merged 3 commits into from
Mar 5, 2020
Merged

avatarUpload Logo #132

merged 3 commits into from
Mar 5, 2020

Conversation

kimispencer
Copy link
Contributor

  • added a Logo variant
  • this variant behaves exactly the same as the avatarUpload but requires a different default background

@kimispencer kimispencer requested a review from maddie927 March 3, 2020 11:54
@arthurxavierx
Copy link
Contributor

If only avatarUpload were a LumiComponent we could make this work without changing anything in the library :p

Copy link
Contributor

@arthurxavierx arthurxavierx left a comment

Choose a reason for hiding this comment

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

I understand that this is meant to avoid breaking changes, but I'm thinking that a better design would be to maybe expose the style and a background prop that allows the parent to control these instead of adding to the Variant type. What do you think @kimispencer @spicydonuts?

I might be totally wrong, please note that I haven't taken the time to check what this hypothetical breaking change would affect.

{ style: R.css { backgroundColor: cssStringHSLA colors.black4 }
, children: []
}
_ ->
Copy link
Contributor

Choose a reason for hiding this comment

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

The Avatar case is superfluous, as it's subsumed by _ here and has the same result.


_, _ ->
case variant of
Avatar ->
Copy link
Contributor

Choose a reason for hiding this comment

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

The Avatar case is superfluous, as it's subsumed by _ down below and has the same result.

@maddie927
Copy link
Member

I think I do agree with @arthurxavierx that adding those props would be a little more flexible, but I also don't want to add props we won't need later (assuming the switch to LumiComponent at some point), and this approach using the variant seems fine in the meantime. Whichever you prefer, though we probably want to merge tomorrow if possible.

@kimispencer
Copy link
Contributor Author

I also agree it would be more flexible adding in the style and background props however I'm not sure it will be worth the time resolving breaking changes fixes esp because the plan is to convert to LumiComponent at some point in the near future, which would make these changes unnecessary. As we're trying to get this logo style variant up asap, I prefer just sticking with this for now (as it causes no breaking changes) and then working on the conversion to LumiComponent as it's own issue.

@arthurxavierx
Copy link
Contributor

Ah yes, good point on converting to a LumiComponent! :)

@kimispencer kimispencer merged commit 1d27539 into master Mar 5, 2020
@kimispencer kimispencer deleted the kimi-avatar-upload branch March 5, 2020 14:18
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.

3 participants