generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

Box-sizing:border-box on frontend but not in editor for certain GB blocks

Open eastriverstudio opened this issue 3 years ago • 0 comments

In GP's main style sheet a style property is applied to all elements to globally set box-sizing: box-sizing: border-box

However in the editor when using certain GB blocks the box-sizing property is not set, so if we apply any more extreme border effects to GB blocks like giving an image block a really large border the editor preview and frontend do not match due to the box-sizing properties on the elements not matching.

The same box-sizing properties should be applied to all GB elements in the editor so rendering of elements is consitent between the editor view and frontend.

Thanks

eastriverstudio avatar Nov 08 '22 10:11 eastriverstudio