Skip to content

feat: enforce character limit and add counter to contact form - #1936

Open
SadmaFaahiim wants to merge 1 commit into
komalharshita:mainfrom
SadmaFaahiim:feat/contact-form-char-limit
Open

SadmaFaahiim wants to merge 1 commit into
komalharshita:mainfrom
SadmaFaahiim:feat/contact-form-char-limit

Conversation

@SadmaFaahiim

Copy link
Copy Markdown

Description

The contact form previously allowed unlimited text input, which could fail backend constraints or clutter the database. This adds client-side character limits and a live remaining-character counter.

Changes

  • \src/templates/contact.html:
    • Added \maxlength\ to name (100), email (254), and message (1000) fields.
    • Added a remaining-character counter under the message textarea.
    • Counter turns yellow when under 20% of the limit remains and red at the limit.
    • Added .char-counter\ styles for normal / warn / danger states.

Acceptance Criteria

  • Textarea input has a character limit enforced
  • Character counter changes styling as the user approaches the limit

Closes #1379

@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown

@SadmaFaahiim is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Thank you for submitting your first pull request to DevPath.

Before review:

  • Complete the PR template fully
  • Ensure all tests pass
  • Link your PR to an issue
  • Keep changes scoped to the issue

A maintainer will review your contribution soon.

@komalharshita

Copy link
Copy Markdown
Owner

@SadmaFaahiim kindly resolve the merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui: enforce maximum character limit validations in frontend contact form inputs

2 participants