generateblocks
generateblocks copied to clipboard
Box-sizing:border-box on frontend but not in editor for certain GB blocks
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