-
Notifications
You must be signed in to change notification settings - Fork 4
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
avatarUpload Logo #132
Conversation
If only |
There was a problem hiding this 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: [] | ||
} | ||
_ -> |
There was a problem hiding this comment.
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.
src/Lumi/Components/Upload.purs
Outdated
|
||
_, _ -> | ||
case variant of | ||
Avatar -> |
There was a problem hiding this comment.
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.
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. |
I also agree it would be more flexible adding in the |
Ah yes, good point on converting to a |
Logo
variantavatarUpload
but requires a different default background