Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue with Nova Forms containing overflow-hidden #6096

Closed
robmellett opened this issue Dec 11, 2023 · 5 comments
Closed

Issue with Nova Forms containing overflow-hidden #6096

robmellett opened this issue Dec 11, 2023 · 5 comments

Comments

@robmellett
Copy link

Nova Version: #.#.#

laravel/nova  4.32.6 

Description:

Nova Forms contain a overflow-hidden css class that breaks overflowing content from select drop down menus.

This issue appears to be different from the following issues.

Detailed steps to reproduce the issue on a fresh Nova installation:

Screenshot 2023-12-11 at 07 51 06

The Nova container containing the line class="relative overflow-hidden bg-white dark:bg-gray-800 rounded-lg shadow divide-y divide-gray-100 dark:divide-gray-700".

When it has the class overflow-hidden it causes problems for one of our drop down components. Is there a way to revert or remove this class from nova please?

Example with the issue

Screenshot 2023-12-11 at 08 02 33

Example when the overflow-hidden is removed

Screenshot 2023-12-11 at 08 03 45
@ralphschindler
Copy link

I can confirm this is also an issue when using nova-flexible-content when you attempt to bring up a dev based select near the bottom of the form.

@davidhemphill
Copy link
Contributor

I couldn't replicate this issue on the latest versions of Nova. We had a recent update that addressed this for Nova's internal components that seems to have done the trick, but third-party selects (like the one you appear to be using) may need to be similarly updated.

If you can prove this is replicable on the latest default version of Nova using it's built-in fields, I'll reopen and investigate!

@ralphschindler
Copy link

@davidhemphill regarding the built-in fields, is your solution to teleport the overlay div outside of the <div class="relative overflow-hidden .."> node? If so, it is going to be hard to replicate that kind of solution in 3rd party Nova Fields that use 3rd party Vue component since typically you may not be able to get ahold of all the div/nodes that need to be teleported.

In the case above (and also my library nova-select-plus), I leverage vue-select https://vue-select.org/api/slots.html to produce a specialized kind of select field. As you can imagine, I won't be able to teleport the vue-select overlay because I don't have control over its rendering of the overlay, and the whole input can't be teleported.

Out of curiosity, what value is overflow-hidden providing in that Card? Does making that div overflow visible break anything in Nova?

@emarshall87
Copy link

This issue is also affecting the use of position: sticky on any children elements within the overflow: hidden container. It's quite difficult to replicate the smooth native css ability of sticky. An overflow: clip instead would solve my particular issue with sticky.

@olieady
Copy link

olieady commented May 7, 2024

Can confirm our WYSIWYG editor's toolbar is no longer sticking to the top of the page for ease-of-use because of this update.

Not sure why overflow-hidden is used here?

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

No branches or pull requests

5 participants