mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-14 01:36:14 +00:00
The mobile TOC anchor was setting text-primary-comfy-canvas in its static class while the conditional :class added text-primary-comfy- yellow or text-primary-warm-gray. Three text-* utilities targeting the same property let CSS source order decide the winner instead of the active-section state. Switch to cn() from @comfyorg/tailwind-utils so tailwind-merge resolves the color conflict deterministically, matching the codebase convention from AGENTS.md and ContentSection.vue. The desktop TOC was already fine because its only static color rule was hover:text-primary-comfy-canvas, which doesn't conflict with the base text colors.