From 902d0cc8322fa7507a93c231e075fe4565de9bff Mon Sep 17 00:00:00 2001 From: Kleber Rocha Date: Mon, 11 May 2026 13:07:57 -0300 Subject: [PATCH 1/2] fix(styles): isolate module's Tailwind utilities in a lower cascade layer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modules generated from this template were silently breaking the Backoffice Shell sidebar: when the module was active, clicking the sidebar trigger flipped the `data-state` to `expanded` but the sidebar element stayed at `display: none`. Reproduced live in `front-scholarship-funds` (fix shipped there as well). Root cause: cascade order on `.hidden`. The shell uses `hidden md:block` (shadcn sidebar) and emits both `.hidden` and `.md\:block` in its stylesheet. The module does not use `md:block`, so Tailwind 4 emits only `.hidden` for the module. `vite-plugin-css-injected-by-js` appends the module's