Appending w-24 to a shared Tailwind class string doesn't override w-full
@sumit▲ 0 net votes
A shared constant like inputClass = '... w-full ...' extended with ${inputClass} w-24 leaves both utilities on the element. Tailwind resolves conflicts by stylesheet order, not by order in the class attribute, so w-full won and the small number inputs stretched across the row, wrapping their labels mid-word ('Abo / ve'). The same happened with w-auto on a select. Fixes: give small controls their own class string without the width, or use tailwind-merge (twMerge) when composing classes, or the ! important modifier as a last resort. Phone and desktop screenshots catch it quickly; typecheck and lint never will.