-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Modal Block #2270
Add Modal Block #2270
Conversation
@ineagu @HardeepAsrani When a Free user uses the Modal block which Pro, it will see this: Two questions:
|
Bundle Size Diff
|
Plugin build for 898a64b is ready 🛎️!
|
E2E TestsPlaywright Test Status: Performance ResultsserverResponse: 233.6, firstPaint: 160.15, domContentLoaded: 1558.5, loaded: 1559.4, firstContentfulPaint: 3446.15, firstBlock: 7597.15, type: 11.24, minType: 10.15, maxType: 12.97, typeContainer: 8.94, minTypeContainer: 7.76, maxTypeContainer: 10.91, focus: 32.2, minFocus: 28.12, maxFocus: 40.2, inserterOpen: 21.3, minInserterOpen: 19.57, maxInserterOpen: 23.65, inserterSearch: 0.69, minInserterSearch: 0.61, maxInserterSearch: 0.8, inserterHover: 2.95, minInserterHover: 2.47, maxInserterHover: 3.72, listViewOpen: 143.97, minListViewOpen: 132.01, maxListViewOpen: 155.76 |
f189301
to
63489cb
Compare
2af3541
to
6923ba3
Compare
thanks for the video @Soare-Robert-Daniel . Can we have default content in the modal popup as we have in the popup block? Can we add the button as well when we add the modal block with the anchor configured both in the modal & button settings? Or Can we simply add a button once the modal block is added and (edit modal) would be a buton moved into the sidebar settings of the "special" button block? Along with the modal settings? Which one seems most logical and easy to do for you? My concerns: I find it that is unnecessary to require 3 steps that the user might not find. |
6923ba3
to
70cd506
Compare
70cd506
to
3f94881
Compare
@Soare-Robert-Daniel We also need to list it here: https://github.com/Codeinwp/otter-internals/issues/224 |
3f94881
to
20e943a
Compare
nevermind the previous comments (see edited), I see the latest commit to auto-insert the button. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good, left a couple of small things but overall it works nicely.
7aefab8
to
0443a8a
Compare
this message looks good to me, we can go with the same icon for now, I couldn't find a good one. |
@Soare-Robert-Daniel tested and everything works well, except for a small thing with the close button. If I choose a border color and position: outside, everything looks good in the editor. Using Neve, the close button color is appearing ok, but the position of the close button is not appearing outside Using the default theme 2024, neither the button color or position applies |
9751bdc
to
97b98bd
Compare
@rodica-andronache, the button position should work now, fixed the malformed class name. Regarding the button color, in the new version of the WP Theme, some CSS properties are no longer added by the core, so I added them to our files. |
@Soare-Robert-Daniel for me, it's still not working on frontend, either with Neve or 2024, the outside position of the close button is not working. Also, I've noticed the block is missing the PRO tag, when using just the free version |
97b98bd
to
898a64b
Compare
The click outside should have been fixed. 2024-08-07_18-15-14.mp4Regarding the out-the-frame window. It seems that WP changed some CSS, and our fixed offset of This is problematic for some blocks like Core Image, which like to not respect their frame nicely. To avoid breaking compatibility with older versions, I made a trick in which I put the default template inside a stack with a top margin of The PRO labels in dashboard is not fixed |
@Soare-Robert-Daniel the issues are fixed now 👍 |
@rodica-andronache, I think yes, it is the same behavior as Popup. I'm not sure if @HardeepAsrani remembers the reason for this. |
🎉 This PR is included in version 3.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closes https://github.com/Codeinwp/otter-internals/issues/175
Summary
The same features like Popup except for Popup Settings tabs in the Inspector
Dynamic Overriding
The
save
function of the modal saves only the inner content. The complete HTML structure is done via PHP, which overrides the default saving data.This method ensures that the modal is working under a valid license while keeping the original data safe.
Screenshots
2024-07-31_16-21-21.mp4
Test instructions
Note
This is PRO block, you will need Otter Pro
Modal is a popup with only the anchor option.
Checklist before the final review