I mean, I can see this being useful to turn modals into components, but Iād really miss the ability to make a Section with a āposition: fixedā behavior. Iād like to put all modals in separate section on the editor tree.
Maybe remove the Modals, but add this feature to sections? Today itās only possible to make their position āNormalā or āStickyā.
I create Modals, simple as that. Iām already exploring the new modal and getting used to it. Iām seeing that it takes a different approach, letting WeWeb manage the visibility state of the modal instead of letting us manage it through variables.
Iām not disliking it, I think itās better in general.
Maybe my point is not even about Modals at all, but rather that it would be nice to have the option to make sections positions āFixedā or āAbsoluteā, as we can do for other elements. Thatās what I think Iāll miss the most about the old Modals.
@luka Will the old āsectionā version of the modal still be reverse compatible, or do we need to change all off our projects over to the new modal variants?
To be honest, I feel like I need a tutorial as to how to use this new element. So many things have changed from before. I too wish we had both options, one to use as a section and one to use within a section. Lastly, why not have a built in option to add buttons at the bottom of the modal like the old version? Now you have to add those in yourself. A video tutorial would be welcomed!
I usually add 1 modal section to a page and create all modals as components in the modal section. I use a modal variable {visible (bool) / name(renders the component) / data(the data that i need to reference inside the modal)}
Just tested the new dialog element. I would want to stick to the modal section atm.
Is there a simple way to prevent page scroll when using the modal section?
You can still use one section to place your modals there, just turn off the āTriggerā property. After this you donāt need a model visible variable anymore, only the data part.
We wonāt be updating the section anymore, but improving the new one is a priority, so keep coming up with suggestions
Let me just come back here to emphasize that after using more of the new modal, I AM liking it and will probably use it a lot. It simplifies many of the behaviors we had to control with variables.
Buuuuuut, the only thing I feel like Iāll miss if the ability to have āfixedā position Sections.
So @luka , thanks for the responses here and let me take the moment to congratulate everyone there on WeWeb. You guys did a great job.
Remove any default styling from the Trigger and Content containers
The Content container does not respect the Z axis in a few cases. Ex - I have a topbar with Z axis set to 10 and the Content (within dialog) has Z axis set to 50. As soon as I make the Z axis of topbar 9, only then does it not pop.
Overlay color as a property of the dialog (similar to the sections)