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

Field iframe outset margin + padding #1814

Open
dndrsn opened this issue Jan 23, 2024 · 0 comments
Open

Field iframe outset margin + padding #1814

dndrsn opened this issue Jan 23, 2024 · 0 comments

Comments

@dndrsn
Copy link

dndrsn commented Jan 23, 2024

I'd like to be able to add a focus box shadow to field(s) inside a custom field editor to match the default field behavior. Because the field editor is rendered inside an iframe the box shadow on the left and right of the field(s) will be cut off if the fields are horizonally aligned with other field inputs.

Here's an example with the proper alignment:

image

And an example with the field inset slightly into the iframe. The box shadow is now rendered correctly, but the field is now inset horizontally from the correct alignment with its label and the field above (it's subtle, but annoying):

image

If it were possible to slightly "outset" the iframe with negative margin and add padding inside the iframe to offset that negative margin the desired effect could be achieved. This could be the default behavior or an option. Any way to accomplish the desired behavior would work.

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