Closed jayeclark closed 2 years ago
Hi @jayeclark , Can we create the custom component for the button (like LoaderButton)and we can use that custom button all over the application, can we go with that approach ?
@Ram-dev27 the Material UI Button functionality is already pretty well abstracted, in the sense that you can specify different types of input, styling, size, etc. - what attributes do you feel are missing from Material UI's button implementation that you think would be a value add across the codebase?
Hi, if this is still available I can try out to replace buttons in the arena folder and maybe a few others if nobody claims them? I also didn't find arena/ArenaProofModal file
@annovo That would be amazing! I'll mark off the arena ones for you now. Re: arena/ArenaProofModal
- sorry, looks like that's a typo on my end. It's actually components/ArenaProofModal
So I was doing refactoring and I have several questions:
options-buttons
in arena/Sprint
that allow you to go to a specific day. They are gray and hovering makes them lighter gray. But when the button is clicked it has ambiguous behavior: if the pointer is still on it - it's still gray; when you move it out it became a gradient pinkish color (like the other button in the section) but it doesn't keep the color after clicking anywhere else. As I understand it, a focus
state makes it gradient-like but doesn't keep the color. Is this intentional? If not, then what should it look like? makeStyles
to create useStyles
hook and used it across different components in the arena. (I think it may also be used in different places such as ArenaProofModal
). For this, I made a separate file and put it in libs dir. Is it okay or should I move it somewhere else? <Button>
has the gradient is to pass the variant="gradient" prop to it.Got it, makes sense, thank you :)
Sure, I'd get started with this!
@sumitsaurabh927 - I've assigned you! Any questions so far?
Yes, How do I find which classes of index.css have been used. I've looked in app.js and found a bunch of classes that are in index.css but not used in app.js. Do I have to look somewhere else? If yes, where?
I've gone ahead and worked through, and replaced instances of Button, and Image throughout the repository! That being said, it would be good to update the css class for .btn
to bring that in-line with our vision for Buttons. @sumitsaurabh927 make sure to pull the latest changes from main, sorry if I stole your thunder a little bit here 😓 I just got the impulse to remove a bunch of these imports so that we can focus on getting the forms migrated!
Description
Several components are still using the
react-bootstrap
Button component and need to be migrated to the@mui/material
Button component.If you would like to help address one (or more) of these, please respond with which you'd like to claim and I'll update the file. Newcomers are most welcome!
(When migrating, please make sure to remove any old Bootstrap props that are no longer relevant and set any new props that are needed by the Material UI component.)
React Bootstrap Button docs: https://react-bootstrap.github.io/components/buttons/ MaterialUI Button docs: https://mui.com/components/buttons/
Already completed
arena/CreateSprintTemplate, arena/Sprint, arena/SprintCreation
Files still needing to be updated to remove Bootstrap
(In most cases the Button component is used only once or twice in the file, it's definitely possible to knock out a few of these fairly quickly!)
Files needing to be updated to add MaterialUI Button (replace