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

Padding broken when used inline #77

Open
Snugug opened this issue Aug 14, 2023 · 0 comments
Open

Padding broken when used inline #77

Snugug opened this issue Aug 14, 2023 · 0 comments

Comments

@Snugug
Copy link

Snugug commented Aug 14, 2023

When using this as an inline block, the extra padding escapes the bounding box of the element and overlaps text around it (see screen shot). I believe this comes down to a span a few parents up containing data-as="span" data-ui="Card" with minified classes setting a fixed height height: calc(1em -1px). Removing that lets this have the space it needs. I'm unsure if that comes from this component or Sanity's built-in handling for inline blocks. I've attached a screenshot of the DOM structure with the relevant item highlighted if that helps find the correct spot to fix this.

Thanks!

Overlapping padding

DOM structure

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

No branches or pull requests

1 participant