-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Image lightbox: configure lightbox settings in theme.json
at the top-level
#54858
Comments
settings.lightbox.allowEditing
to false
in theme.json
doesn't hide the UI settingtheme.json
at the top-level
theme.json
at the top-leveltheme.json
at the top-level
Duplicate of #54544 |
The issue here is that in the core Lines 276 to 279 in 5b286b7
So, setting in on the top-level in the settings does not override it. The obvious solution would be to define it on the top-level in the Core |
@michalczaplinski The issue was that, when using the shorthand syntax, i.e. Since we're not planning on supporting the shorthand syntax for the time being, that is no longer an issue. The issue with the false values not being saved was also presenting inconsistencies, though that's now been merged. There may have been other issues with it as well, but those are the primary ones that comes to mind. |
Let's close the other issue (#54544) in favor of this one because it has more details and discussion now 🙂
I've just tested the approach of adding moving the lightbox definition to the top level and while it does solve the problem described in the issue, it causes the inverse problem: Now it's not possible to define properties on the block-level in the It's something that we've seen previously with Artemio, I'm not sure what we're doing wrong, but needs a deeper look. |
@artemiomorales Do you still expect we ship this for 6.4? |
@michalczaplinski It was lowest on the list of priorities as far as the bugs go, and it looks like I won't have time to work on it in the next couple of days. So it looks like probably not unless you basically already have a fix ready to go. From what I understand, shipping this in the next minor release is fine, so I'd focus efforts on other more pressing bugs if you're able. |
All right, that makes sense. I didn't have the time to look into it in depth, I'm sorry. We can ship it in the next minor release 👍 |
I see this is still not possible to do in 6.5. Any chance this can be fixed for 6.6? @artemiomorales @michalczaplinski |
@oandregal Thanks for the ping. I'll add it to the list of tasks for 6.6 and prioritize relative to other projects for the coming weeks. |
Hi @artemiomorales, do you have any news about this ? 6.6 is out and set "lightbox" properties all to false in settings section or in blocks > core/img does not hide the functionnality from link button in an image block. Thx ! |
👋 @nderambure no news yet, but @artemiomorales and I will take another look at this tomorrow! 🙂 |
It sounds like your problem is unrelated to the issue described here originally. Could you open a new issue and provide more details that would allow us to replicate your problem? It would be especially helpful to see your |
Description
The lightbox feature can be controlled via
theme.json
with two settings:allowEditing
to hide/show the UI panel) andenabled
(to control whether it is enabled or not).While configuring the value of these settings at the block-level works as expected, doing the same at the top-level does not work.
Step-by-step reproduction instructions
BLOCK LEVEL. Test the UI can be disabled and the feature enabled (works as expected):
theme.json
of the active theme such as:The expected behaviour is that:
TOP-LEVEL. Test the UI can be disabled at the feature enabled (does not work):
theme.json
of the active theme such as:The expected behaviour is that:
Screenshots, screen recording, code snippet
This is the UI for the lightbox feature, when is visible:
Environment info
WordPress 6.4 beta1, Gutenberg trunk (16.7.0-rc.2), TwentyTwentyThree theme. I could replicate the issue with and without Gutenberg enabled.
The text was updated successfully, but these errors were encountered: