Skip to content

fix: prevent contact validation layout shift - #32

Merged
kamycoding merged 1 commit into
mainfrom
fix/contact-error-layout-shift
Aug 11, 2026
Merged

fix: prevent contact validation layout shift#32
kamycoding merged 1 commit into
mainfrom
fix/contact-error-layout-shift

Conversation

@kamycoding

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 11, 2026 18:28
@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for fanciful-cannoli-268c0c ready!

Name Link
🔨 Latest commit 13b2240
🔍 Latest deploy log https://app.netlify.com/projects/fanciful-cannoli-268c0c/deploys/6a7b69e084e99a0008a7bf9d
😎 Deploy Preview https://deploy-preview-32--fanciful-cannoli-268c0c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@kamycoding
kamycoding merged commit 5e8f9fc into main Aug 11, 2026
4 of 5 checks passed
@kamycoding
kamycoding deleted the fix/contact-error-layout-shift branch August 11, 2026 18:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the contact form field layout to reserve space for validation errors up-front, reducing layout shift when errors appear/disappear.

Changes:

  • Converts .contact-field spacing to explicit CSS grid rows (label / spacer / control / error).
  • Reserves a fixed “error line” height via --contact-field-error-line and tunes it for larger breakpoints.
  • Removes the prior :has(:placeholder-shown) overlay technique for invalid fields.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 13 to +15
display: grid;
gap: 8px;
padding: 16px 24px;
grid-template-rows: auto 8px 22px var(--contact-field-error-line);
padding: 16px 24px 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants