You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: .menu-title not working on collapse details/summary menu item #4629
Menu with collapse items using details/summary does not render properly the .menu-title item. Arrow is duplicated (native HTML and the Daisy one) and is not aligned.
<ulclass="menu bg-base-200 rounded-box w-56"><li><a>Item 1</a></li><li><detailsopen><summaryclass="menu-title">Parent broken style</summary><ul><!-- submenu here --></ul></details><li></ul>
Thank you @anthony-robin
for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
Thank you !
Your solution fixes the double arrow issue but there are still padding inconsistency that makes the label to be misaligned and too big in height in comparaison of submenu items and other first level regular items. Arrow does not take the title color either.
Do you think it should be fixed from Daisy side to work out of the box or should I stay with my workaround by manually specifying the title classes ?
I checked the code and summary.menu-title was excluded on purpose (@saadeghi can you remember a reason for this? It was present from first commit in v5)
While checking the code I also discovered a problem with how .menu-active was implemented (nesting order preventing it to be an utility) - only in tailwind play
Design question for the implementation in demo:
summary.menu-title text is dimmed when at rest, hovered, and focus-visible
@anthony-robin
saadeghi confirmed my concerns about the aspect of the interactive summary when styled as menu-title - the aspect would be of an inactive menu item
Currently there's a visual difference between menu items that are interactive and the ones that are not. Especially the low opacity menu title is supposed to show that it's not clickable. This is important because we don't want confusion from the end user about what is clickable and what is not.
I think if someone wants this style they can customize it with utility class.
Activity
github-actions commentedon Jul 13, 2026
Thank you @anthony-robin for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.
pdanpdan commentedon Jul 13, 2026
Hello
Place the
.menu-titleinside thesummaryin this case: https://play.tailwindcss.com/ocXEYRkruUanthony-robin commentedon Jul 13, 2026
Thank you !
Your solution fixes the double arrow issue but there are still padding inconsistency that makes the label to be misaligned and too big in height in comparaison of submenu items and other first level regular items. Arrow does not take the title color either.
Do you think it should be fixed from Daisy side to work out of the box or should I stay with my workaround by manually specifying the title classes ?
Note: updated demo with workaround case: https://play.tailwindcss.com/3QvjI45DRe
pdanpdan commentedon Jul 13, 2026
I checked the code and
summary.menu-titlewas excluded on purpose (@saadeghi can you remember a reason for this? It was present from first commit in v5)While checking the code I also discovered a problem with how- only in tailwind play.menu-activewas implemented (nesting order preventing it to be an utility)Design question for the implementation in demo:
summary.menu-titletext is dimmed when at rest, hovered, and focus-visiblesummary.menu-titletext is bright when at activeIs it good like this?
v1: https://play.tailwindcss.com/PGSB43a3VG?file=cssv2: https://play.tailwindcss.com/3AUwz6tIEq - added an example for
.menu-activeanthony-robin commentedon Jul 13, 2026
Your example with
.menu-activelooks really great !pdanpdan commentedon Jul 20, 2026
@anthony-robin
saadeghi confirmed my concerns about the aspect of the interactive
summarywhen styled asmenu-title- the aspect would be of an inactive menu itemPlease style the summary using utility classes.
saadeghi commentedon Jul 20, 2026
From #4633 (comment)
anthony-robin commentedon Jul 20, 2026
Thank you for clarifying the reason, I will make my own style then :)