Skip to content
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

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

Open
eastriverstudio opened this issue Nov 8, 2022 · 0 comments
Labels
triage Awaiting review

Comments

@eastriverstudio
Copy link

eastriverstudio commented Nov 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Awaiting review
Projects
None yet
Development

No branches or pull requests

1 participant