Closed ggggg closed 1 year ago
I also request another project owner to take a look, because I'm not sure if they want to add another library (Material UI)
I cannot request anyone to review, only maintainers can. It was not my idea to add MUI, @huonggiangbui requested it in #73
LOL you can use any library you want, MUI is just a suggestion
MUI is fine imo, but I want to see what Shubh or Chris think about this
LOL you can use any library you want, MUI is just a suggestion
Oh, sorry for the misunderstanding.
It's okay, I should make it more clear!
Personally, I wouldn't add in MUI. We already have Tailwind CSS and personally, I don't want to be adding in another dependency for this. For example: https://flowbite.com/docs/components/spinner/ - Just found this after a quick google search for a spinner using Tailwind
Personally, I wouldn't add in MUI. We already have Tailwind CSS and personally, I don't want to be adding in another dependency for this. For example: https://flowbite.com/docs/components/spinner/ - Just found this after a quick google search for a spinner using Tailwind
The spinner wasn't what we added MUI for, we wanted a cleaner error message. But I'll come up with something.
Used alert() because this message shouldn't pop up often and to avoid adding another library/component. Please review and let me know of any changes you want me to make.
If tailwind is already a dependency a better solution that might look nicer is to use one of their modal components https://tailwindui.com/components/application-ui/overlays/modals
If tailwind is already a dependency a better solution might look nicer to use one of their modal components https://tailwindui.com/components/application-ui/overlays/modals
I will look into it, thanks!
@logonoff Sorry for this taking a while, I had midterms and was busy with other school stuff. Anyways, this should now use tailwind's alert box instead of the ugly javascript one. Here is a gif preview:
I know this is incredibly picky, but I'm not liking that the spinner isn't centered around the C. :laughing: Is it easy to fix that?
The alert box looks great!
Well the spinner is centered, I think anything else would look odd. A possible fix can be to mess around with the size of the spinner.
Are any of these any better @embeddedt?
The issue is less obvious now but it's still not centered compared to the center of the C. I'm not sure why. It's weird, since I assume the buttons have centered text and the spinner is also centered.
Also, I like the first design in https://github.com/utmgdsc/PollVotingSystem/pull/74#issuecomment-1288165720 the best (the one with no background), as it looks cleaner IMO and should also be easier to port to a future dark mode.
Hey is this still open?
Fixes: #73
Screenshots and screen captures:
Self-review checklist
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review:
Completed manual review and testing of the following (please attach screenshots/gifs for UI changes and commit your test cases for functionality changes):