Conversation
|
@jordanarldt is attempting to deploy a commit to the Makeswift Team on Vercel. A member of the Team first needs to authorize it. |
|
@jordanarldt Is there a benefit to adding this functionality directly to the modal vs someone being able to use our form components within the content of a basic modal? This feels like a lot to add and maintain when it's something that already has existing primitives that can be used to accomplish the same thing? Was this a specific decision in Catalyst? |
@jamesqquick I would say there's benefit for sure in terms of UX/DevX. This was a specific decision I made when in Catalyst while working with the Modal component because it felt quite lacking for what we needed. I thought about it like this - in real world scenarios, 99% of Modals will have a title, a close button at the top right, and action buttons at the bottom, so I thought it made the most sense to provide those out of the box for those that want them, but also make sure it's not a requirement if someone wants complete control over the modal. If I want to make a modal with the content entirely made out of form primitives or whatever else I want, I can. BUT, if my modal only needs to be a simple form input with some buttons, I can also use the builtin Essentially, while working with the original VIBES component - as a developer - all I could think about is how much nicer it would be if the |
0471c84 to
0379c33
Compare
0379c33 to
70bf4c1
Compare
|
I like the updates to the modal primitive! I agree a close button, title, etc should be supported in the primitive. However, I'm hesitant that the |
70bf4c1 to
46388be
Compare
@hunterbecton I can understand that! The only problem is that if we have built-in modal buttons, they still can't be used if you are using a form in the modal if we don't add built-in form support. The reason being is that if I do something like this: The code would end up like this: The modal |
968bc48 to
10f263f
Compare
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
7403aa3 to
e30382e
Compare
e30382e to
7dd938d
Compare
Modalcomponent to maketriggernot required, and add a header/title to the modal with a close button.