-
Notifications
You must be signed in to change notification settings - Fork 7
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
Rename LayoutCenter
to Center
and CardList
to Grid
#146
Conversation
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 am unhappy with changing CardList
into Grid
. As user of the library, I would not be able to simply use it. Before, it was crystal-clear and easy to understand. After change, it would probably cause lot of pain to me (IMHO also to other developers) because I will need to somehow know what grid accepts and how it works.
In other libraries, Grid represents components that matches with CSS Grid. This component does not do that, it does not accept those props.
I think that CardList
was correct naming. This Grid component is very stupid, it does not accepts props like Grid component in other libraries, so it cannot be called Grid in RUI.
I do no like change of CenterLayout as well. Center component seems like horizontal-alignment-only component to me.
2fd8f70
to
38805d7
Compare
@bedrich-schindler Thank you for the feedback! Both changes are for better reusability and less specific components. The idea behind it all is as follows.
|
@adamkudrna Thanks for response. I just wanna tell you that I understand purpose of those changes. With explanation I agree now with Center component. I also agree with We do not have to do it now, but if it is named |
Yes! That's what I think, too. |
…p it from taking up 100 % of viewport height (#143) It's now necessary to set the desired height on the parent of the `Center` layout, eg. when you're using `Login` screen component which is expected to spread over entire viewport.
38805d7
to
9b324ac
Compare
LayoutCenter
and CardList
more genericLayoutCenter
to Center
and CardList
to Grid
CardList
into a more genericGrid
LayoutCenter
more generic: call it simplyCenter
and stop it from taking up 100 % of viewport heightNote for the
Center
layout: It's now necessary to set the desired height on the parent of theCenter
layout, eg. when you're usingLogin
screen component which is expected to spread over entire viewport.Closes #143.