ethereum-org-website
ethereum-org-website copied to clipboard
feat: build custom react-select component with Chakra [updated]
Replaces #10542
Part of Implementation of new DS v1 #9548
Description
This PR update the usage of the react-select
package.
- Bumps the
react-select
dep to latest which includes TypeScript support - Creates a custom select component, including custom internal parts using Chakra components.
- Create a custom theming config
ReactSelect
to be sent to the internal parts - Update implementation with related page components.
- Update onChange handler functions to match new TypeScript support.
Deploy Preview for ethereumorg ready!
Name | Link |
---|---|
Latest commit | dcd83959f79c039c1ab6150464ac765821142116 |
Latest deploy log | https://app.netlify.com/sites/ethereumorg/deploys/65de05a3be166f00078fefed |
Deploy Preview | https://deploy-preview-12065--ethereumorg.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@TylerAPfledderer, great work, thank you!!! While testing on the browser, I realized that the color scheme was too strong and relied heavily on the primary color... Can you change it?
Sorry about this, but sometimes, when on the browser and in the mix of the styles, we can find "design bugs".
Link to the Figma file (I added a comment, too) https://www.figma.com/file/NrNxGjBL0Yl1PrNrOT8G2B/ethereum.org-Design-System?type=design&node-id=5303%3A58208&mode=design&t=gfwqptwT1wv8ZJCx-1
Thank you!
@pettinarip @nloureiro all above suggestions should be resolved, and have updated the storybook file.
I'm afk at the time of this comment, but I noticed a styling error for the flush variant when checking the story book preview. Will get that addressed asap.
I'm afk at the time of this comment, but I noticed a styling error for the flush variant when checking the story book preview. Will get that addressed asap.
not sure what you mean by "flush variant".... do you mean the active color?
I was checking and still found this difference, not sure if this is what you mean
I'm afk at the time of this comment, but I noticed a styling error for the flush variant when checking the story book preview. Will get that addressed asap.
not sure what you mean by "flush variant".... do you mean the active color?
I was checking and still found this difference, not sure if this is what you mean
I'm referring to the flushed
versus outline
variant you have labelled in the DS. I made an update to the border styling which caused the variants to look the same.
This should now be resolved for a proper review.
@nloureiro you can immediately view this component through this published storybook preview
@TylerAPfledderer @pettinarip is this ready to be merged? I need to use a Select
component and would be very handy, thanks!
@TylerAPfledderer @pettinarip is this ready to be merged? I need to use a
Select
component and would be very handy, thanks!
@nhsz I think this is good to go for the most part. What's left is removing the original select and it's story