-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[List] Remove Paper #3612
[List] Remove Paper #3612
Conversation
This is good 👍 But it's a breaking change we should document it and update the examples too. also, zDepth should error as it's functionality is not |
All good points - I think I rushed this! 😄 |
@mbrookes @alitaheri I know conceptually this sounds weird/crazy, but if we made this change, we could probably just deprecate Users could nest Is that too weird? I guess another option to make it less weird is we could get rid of the |
I thought the same thing when I first looked at this - about the only thing that is left is some padding, which varies depending on whether there's a
It looks fairly tightly coupled to List, although I'm curious, as it's been named and located as if it's a standalone component. There was a request on gitter today for a multi-select menu, but I'm not sure how useful this would be there. I do intend to revisit this PR, but last time I tried to update it, I was plagued by the inline-style-prefixer issue! |
I hear you! 😄
I've thought about it some more, I think my vote is let's expand List to include some the selection functionality. I think it makes sense. Menu and List are related to each other, but Menu currently manages it's own selection state and I don't think it will ever make sense use selectable-enhance with it. Also, having a parent List component may help one day if we want to support something like Leave Behinds. I think if we get the API right, the Menu components could be dramatically simplified because right now there is a lot of duplicating functionality/API. |
@alitaheri That's a fair point. I wanted to show some kind of meaningful message, so rather than just remove the prop I've used Let me know if you'd suggest something different. I think a warning is reasonable, as nothing will break if the prop is provided, it just won't generate a shadow if one was expected. Most devs will be using @newoga I think your suggestions deserve their own PR, perhaps combined with deprecating valueLink from the HOC. |
Good point 👍 And the warning explicitly expresses that it's removed not deprecated 👍 👍 |
This looks good 😅 |
Whoo! |
@mbrookes Mind squashing it? |
I really like the direction this PR is taking 👍. Let's split the concern of each component. |
Thanks a lot @mbrookes 👍 👍 |
Ops, I forgot to push the merge button. |
tests /docs demo, and is linted.Paper is redundant, as, like Menu, List is used wrapped in other components such as LeftNav, which may already use Paper.