Repository navigation
feat(ui-tools): add dropDown component - #47043
Conversation
|
👀 Review this PR in a CodeSee Review Map |
|
@shootermv, Thank you for this pull request. Not sure if this pr is a work in progress, but I wanted to point a few things that are missing. The main aim of the component library is to replace the react-bootstrap library with minimum to no modifications on the lean's client side. So our components should be identical to the used react-bootstrap ones:
To clarify the technical specifications, it would be great if you could research the current usage as described in the documentation and create an issue. Then, you could finalize this pr accordingly. |
|
What @ahmadabdolsaheb said, but I would also add that we should try to keep the component library "dumb", in that they don't know about the business logic of the consumers / the apps that use them. It is so that they can be shared across multiple apps (/learn is the main consumer, but we are aiming to use the library in Code Radio and Chapter as well). This means the drop down shouldn't have "Account Settings" or "Sign out" options built in. Let us know if you need our help with the development process 🙂 |
5d8d64d to
cf49041
Compare
|
can i see some place that project currently has this dropdownButton functionality? |
cf49041 to
8a8b2dc
Compare
|
@shootermv, here are multiple use cases: https://github.com/freeCodeCamp/freeCodeCamp/search?q=DropdownButton |
4c47481 to
6413700
Compare
|
@shootermv, the component is taking shape pretty nicely. Let me know if I could be of any help or if you need any further clarification. |
|
currently i added |
|
@shootermv so the implementation in this pr has different styles and functionality comparing to the bootstrap component in the codebase. I highly recommend reviewing the #44668 issue, the related documentation (mentioned in the same issue) and create an issue accordingly so we could finalize the specifications before proceeding with updating this pr. |
|
@shootermv how is the progress going on your side. Let me know if you need any help. |
|
Instructions for linking:
Actionable items:
|
|
About width, I don't think it's a good idea to set The reason that the theme isn't applied, because the styles are using |
|
I haven't changed the extra files, to not make testing it annoying. |
We could set width to auto and min width to 100% to avoid really small buttons. |
f99b1dc to
717cdba
Compare
Co-authored-by: ahmad abdolsaheb <[email protected]>
Co-authored-by: ahmad abdolsaheb <[email protected]>
|
is it good that menuitems are spread at full width of the page?
…On Thu, Apr 20, 2023 at 12:54 PM Sem Bauke ***@***.***> wrote:
***@***.**** requested changes on this pull request.
So this looks good to me. But one bug appeared when reviewing the stories
in story book.
When viewing the drop-up first. Then view the dropdown. The dropdown
doesn't dropdown but drops-up instead.
[image: image]
<https://user-images.githubusercontent.com/46919888/233330088-929dc154-8392-46a6-b167-85d655009952.png>
Also there does not seem to be a story for the "Menu with Action" story.
—
Reply to this email directly, view it on GitHub
<#47043 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKGMHUVOJPTX74GB3VBCCTXCEBU5ANCNFSM54V6ZCWA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Thanks for reviewing the pr. Muhammed and I will make the necessary changes. |
|
Congrats on getting this in @shootermv, @ahmadabdolsaheb and @Sboonny 🥳 |
|
@shootermv I wasn't able to review the PR, but wanted to say thank you for the extreme patience and for the contribution to the component library. I really appreciate it 🙂 |
|
Was very pleased to see your reponse.
Thank you
…On Fri, Apr 28, 2023, 16:26 Huyen Nguyen ***@***.***> wrote:
@shootermv <https://github.com/shootermv> I wasn't able to review the PR,
but wanted to say thank you for the extreme patience and for the
contribution to the component library. I really appreciate it 🙂
—
Reply to this email directly, view it on GitHub
<#47043 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKGMHTHNMWX4ZZV3SC3QVTXDPAPDANCNFSM54V6ZCWA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|




Checklist:
Update index.md)mainbranch of freeCodeCamp.Closes #47356