Skip to content

bug: Clicking the input container doesn't focus the registration input #322

Description

@jagdish-15

The registration form wraps each input inside a styled .form-input-bash-wrapper container. The wrapper has padding applied to it, while the actual <input> occupies only the inner content area.

As a result, clicking on the padded region of the wrapper does not focus the input field. Users must click directly on the input element itself, making the input area feel smaller than its visible bounds and resulting in inconsistent interaction.

To Reproduce

  1. Navigate to /registration.
  2. Click near the left or right padding inside any registration input field (e.g. Full Name or LeetCode Username).
  3. Notice that the input does not receive focus.
  4. Click directly on the text input itself.
  5. The input now focuses correctly.

Expected Behavior

Clicking anywhere inside the visible input container should focus the corresponding input field.

Code Reference

In frontend/styles/main.css:

.form-input-bash-wrapper {
  padding: 0.75rem 1rem;
}

The padding belongs to the wrapper rather than the input, so clicks on the padded region target the wrapper instead of the input element.

Requirement

The final solution should preserve the current visual appearance while ensuring the entire visible input area is clickable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrontendTask mainly involving frontendhelp wantedExtra attention is neededlevel:intermediateIndicates the difficultytype:bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions