diff --git a/Styles/neo.css b/Styles/neo.css index 7e06195..15b0e21 100644 --- a/Styles/neo.css +++ b/Styles/neo.css @@ -242,6 +242,12 @@ @utility dropdown-content { background-color: var(--color-base-100); box-shadow: -3px -3px 6px var(--neo-light), 3px 3px 6px var(--neo-dark); + + /* A display utility on the content (flex, grid) beats daisyUI's display:none on a closed dropdown, which then stays + invisible (opacity 0) but still in the way of the pointer, over whatever it covers: hide it from the pointer too. */ + :where(.dropdown.dropdown-close, .dropdown:not(.dropdown-open, .dropdown-hover:hover, :focus-within)) & { + visibility: hidden; + } } @utility alert {