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
Bugfix: Keep the button reset from overriding Tailwind utilities
The active and hover highlight disappeared from the sidebar items after the
switch to native buttons.
.btn-bare was declared outside any cascade layer while Tailwind emits its
utilities inside @layer utilities. An unlayered rule outranks every layered one
whatever its specificity, so the reset won against the utilities sitting on the
same element and its background, padding, colour, font and text-align were
applied instead of theirs. Moving the rule into the components layer, which the
generated stylesheet orders before utilities, restores the intended precedence.
The sidebar was the visible symptom, but the same reset was quietly beating
utilities on all twelve elements using it: padding on the upload button and the
slot cards, background and border on the interview process card, colour and
weight on the login and registration links, alignment in the document dialog.
Confirmed from the compiled stylesheet rather than by eye: .btn-bare now resolves
inside the components layer while .bg-primary-hover-outlined stays in utilities.
Added a guard on the declaration, since nothing else can catch this. The class is
applied either way, so a component test still passes while the styling is gone,
and the failure is only visible on screen. The guard was checked to fail with the
rule moved back out of the layer.
Verified: 2028 client tests, typecheck, eslint with no errors, a11y lint, the
production build and prettier.
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments