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: Menu Title Color Inheritance Issue #1560

Closed
sergebenard opened this issue Jan 26, 2023 · 1 comment
Closed

bug: Menu Title Color Inheritance Issue #1560

sergebenard opened this issue Jan 26, 2023 · 1 comment

Comments

@sergebenard
Copy link

sergebenard commented Jan 26, 2023

What version of daisyUI are you using?

2.47.0

Describe your issue

Using Menu Titles as documented, when I apply a colour to the menu background and text, the Titles in the menu do not inherit the colour change as specified; it remains as the Title's default text colour.

To replicate:

Menu item and menu title appear as expected defaults.

<ul class="menu bg-base-100 w-56 p-2 rounded-box">
  <li class="menu-title">
    <span>Category</span>
  </li>
  
  <li>
    <a>Item 1</a>
  </li>
</ul>

Menu with secondary colour specified for background and text elements shows menu item' text colour changes as expected, but the menu title remains as default.

<ul class="menu bg-secondary text-secondary-content w-56 p-2 rounded-box">
  <li class="menu-title">
    <span>Category</span>
  </li>

  <li>
    <a>Item 1</a>
  </li>
</ul>

It's not a big deal, but it'd be nice to have menu titles' colours adapt to inheritance as the menu items do. 😃

Thanks so much for your work!!

Serge

What browsers are you seeing the problem on?

Chrome, Firefox, Edge

Reproduction URL (optional)

https://play.tailwindcss.com/UiyWTPsI6t

@saadeghi
Copy link
Owner

saadeghi commented Feb 1, 2023

Fixed in the latest version: 2.50.0
https://play.tailwindcss.com/g7QsWDq3UH?file=config

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

2 participants