CloudCatch / light-modal-block

Lightweight, customizable modal block for the WordPress block editor
GNU General Public License v2.0
4 stars 2 forks source link

Light Modal Block Fails to Render Content with Top/Bottom Root Padding Set #2

Open TremiDkhar opened 2 months ago

TremiDkhar commented 2 months ago

Description

When the root padding for the top and bottom is set, the Light Modal Block fails to render its content. The issue persists until the padding values are adjusted or removed. See the video below for a demonstration of the issue.

https://github.com/user-attachments/assets/0739125b-9c84-4a64-8ad0-00765471e93f

Environment

WP: 6.6.1 Current Theme: Twenty Twenty-Four v1.2 Plugin Version: 1.3.0

dkjensen commented 2 months ago

@TremiDkhar Can you check what the value of

{
    "styles": {
        "spacing": {
            "padding": {}
        }
    }
}

Is set to? In TwentyTwentyFour I am seeing the left and right global padding set to var(--wp--preset--spacing--50) so depending on what that value is it could maybe make things weird? Try setting the top and bottom padding on the light modal block to something other than var(--wp--preset--spacing--50). In my case it works fine