-
Notifications
You must be signed in to change notification settings - Fork 82
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
💬 Feedback - Box shadow focus style outside of iframe when embedding #2504
Comments
Marking issue as stale since there was no activity for 30 days |
Still relevant. |
Marking issue as stale since there was no activity for 30 days |
Can someone from the Contentful team please look at this? cc @Lelith |
Hey @AndrewLeedham, Thanks |
Marking issue as stale since there was no activity for 30 days |
@Lelith Any progress on this? |
I have unfortunately no built in solution. The issue is that there is not enough spacing inside of the iframe. So you have to add a custom CSS to your form, to ensure a little more spacing around the form fields |
Hi @Lelith. I am aware there isn't a built in solution, we have disabled the focus outline to workaround the issue for now. I think adding spacing to the page would throw off the page flow more, and make it obvious which fields are built-in and which are extensions. Ideally something on the iframe level that adds padding and negative margin for the known amount of outline used in forma36 would be an ideal solution. Or making the focus style more compatible with extensions. |
Marking issue as stale since there was no activity for 30 days |
Forma 36 component feedback
When using a focusable Forma36 component in a Contentful UI Extension it is rendered inside an iframe, this cuts off the box-shadow when focused. Say we are making a UI Field Editor, typically they will be rendered next to built in field editors, this means that using padding is not an option. I have recreated the effect here.
For example given these 2 dropdowns in the Contentful interface:
Both look correct until you focus or click on them:
I have been disabling the box-shadow for these components, because it is better than differing padding, but it seems like this should be addressed in a more official capacity?
The text was updated successfully, but these errors were encountered: