Replies: 7 comments 31 replies
-
The way I see it we have multiple different types of content all being displayed in some popup/dialog/modal and they are all using the same code which is resulting in compromises. Type 1 - Messages that just need to be dismissed |
Beta Was this translation helpful? Give feedback.
-
fwiw there is also https://github.com/joomla-projects/custom-elements/blob/master/src/js/modal/modal.js which could be modified to fit any requirements, it's not 3rd part code 😉 |
Beta Was this translation helpful? Give feedback.
-
Web Components (which we already have for Modals) for each case would make most sense. I don't think anybody wants to deal with yet another popup or lightbox like monolithic JS library with its own goofy strict HTML structure again. Most of which stop being maintained within a year. Improving the web component would make most sense. When it comes to popup JS libraries the only 2 I trust or would bother with is tippy (for the actual popup) and popper (for positioning API). I've seen way too many of these libraries show up and vanish in a year to trust anything else. Neither have opinions on your content and the hardest part about modal windows is positioning so really the only thing you need for them is Popper. Since Bootstrap 5 is already using Popper we're set. Basically there's no reason to switch to glightbox for modals. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, |
Beta Was this translation helpful? Give feedback.
-
Just wanted to add that since March 2022 Dialog is supported in all major browsers, so basically no JS library or script is needed for the creation of a modal (still some JS is needed for opening/closing, etc). Also there's a polyfill so modals this could be done without too much pain and without shipping another external dependency |
Beta Was this translation helpful? Give feedback.
-
Just for the record, here was a first approach for a modal field refactoring. |
Beta Was this translation helpful? Give feedback.
-
I intend to prototype a new modal based on the dialog element (as a wrapper with support for both declarative AND imperative use). I intend to implement all of @Fedik 's recommendations/specs but maybe few have to be postponed for 5 as there might be B/C breaks (eg moving the buttons inside the frame, etc). Are there any other considerations/specs that I should be aware? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's discuss Joomla! system popups for a content selection and editing. And how it can be improved in future releases (not about 4.0)
As I guess everyone is aware a current state of system popups is an endless well of bugs.
The reason is that the
modals
not designed to work with complex dynamic content, but rather for simple dialog popups to replace a nativealert()
andconfirm()
.What exactly wrong with current approach?
What is good in current state?
Which approach is good?
SqueezeBox
)joomla:close-popup
,joomla:select-content
(with data to select).The script that we need
Turns out it a bit hard to find a good script that fit all these requirement 😄
For now I found glightbox, that seems working good, and does not have licensing problems (if I nothing missed).
If someone know a good one, please tell.
Okay, and now?
Well, I hope to hear a practical ideas and suggestion about the topic.
And again it is not for 4.0 version.
Beta Was this translation helpful? Give feedback.
All reactions