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

bug: Background color classes not working when using horizontal menu with nested drop down menu. #2043

Closed
Jabronironi opened this issue Jun 22, 2023 · 0 comments

Comments

@Jabronironi
Copy link

Jabronironi commented Jun 22, 2023

What version of daisyUI are you using?

3.1.5

Describe your issue

When using 'menu-horizontal' class with an item that contains a <details> 'dropdown' with a <ul> 'dropdown-content menu' item that is styled with a 'bg-*' class, the background color is not being applied. There are also other styles not respected here. If you use a menu that is not 'menu-horizontal', it works as expected. e.g. -

Does NOT respect background color:

<ul class="menu menu-horizontal">
    <li><a>Item</a></li>
    <li>
        <details class="dropdown">
            <summary>Item</summary>
            <ul class="dropdown-content menu rounded-box mt-3 w-52 bg-base-200 p-2 shadow">
                <li><a>Item</a></li>
            </ul>
        </details>
    </li>				
</ul>

Does respect background color:

<ul class="menu">
    <li><a>Item</a></li>
    <li>
        <details class="dropdown">
            <summary>Item</summary>
            <ul class="dropdown-content menu rounded-box mt-3 w-52 bg-base-200 p-2 shadow">
                <li><a>Item</a></li>
            </ul>
        </details>
    </li>				
</ul>

What browsers are you seeing the problem on?

Edge

Reproduction URL (optional)

No response

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