clicking "sign and send" with empty/wrong pw field violates layout shift policy #123
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#123
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
"Please enter your password." or "Wrong password." error message appears, moving the button down off the screen. The error message space should be reserved so the button doesn't move when the error appears.
This is an obvious violation. Please very carefully audit the codebase for all locations where you insert or update elements like this as a result of user interaction (button clicks, field changes) or API results/errors. Go over each file a few times to determine all places you're modifying the layout intentionally or by accident, and try to itemize them here. Then make a PR fixing all of them.
Layout Shift Audit Results
Audited all JS/HTML files for elements where error/warning/status messages toggle
display:none(viahiddenclass), causing layout shift when they appear or disappear.Violations Found (13 total)
confirm-tx-password-errorshowError/hideErrortoggleshiddenclass, defeating existingmin-hconfirm-warningsclassList.add/remove("hidden")confirm-errorsclassList.add/remove("hidden")confirm-feehidden, shown on loadapprove-tx-errorshowError/hideError+ directclassList.add("hidden")approve-sign-errorshowError/hideErrorapprove-sign-danger-warningclassList.add/remove("hidden")export-privkey-flashclassList.add/remove("hidden")delete-wallet-flashclassList.add/remove("hidden")add-wallet-phrase-warningclassList.add/remove("hidden")receive-erc20-warningclassList.add/remove("hidden")add-token-infoclassList.add/remove("hidden")settings-addtoken-infoclassList.add/remove("hidden")Already Correct
send-to-error— usesmin-height: 1.25remwithtextContentswap, nohiddentoggle ✅confirm-recipient-warning— already usesvisibility: hidden/visible✅flash-msg— usestextContentswap withmin-h-[1.25rem], nohiddentoggle ✅Fix Applied
All 13 violations fixed in branch
fix/issue-123-layout-shift-audit:showError/hideErrorin helpers.js now usevisibilityinstead ofhiddenclassstyle="visibility: hidden"+min-heightwhere applicablestyle.visibilityinstead ofclassListfor these elementsdocker build .passes with zero failures