Monorepo for Tangled

web/components: press Button's content, not the button itself master

the raised variants moved the whole button down 2px on :active, so a pressed button nudged its own box and anything laid out against it. the depth now reads purely from the ::before shadow flip plus the label sinking: the translate moved onto a wrapper span around the content, driven by active:*:translate-y-0.5. the wrapper takes gap-[inherit] so the size variants' gap still applies across the extra level, and geometry is unchanged — the sizes, loading and inset-shadow stories measure identical button rects before and after. Signed-off-by: eti <eti@eti.tf>


Author eti Committer dawn Date Commit 5d31243b Parent 7745e7c8 Change ID nvutsvvv
+22 -17
1 changed file