react-component / react-component/input-number

Allow passing className for the input element

Open
#594 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
323
Forks
188
Avg merge
20h 3m
Merged PRs (30d)
1

Description

I need to set specific className(s) on the input element itself, not any of the wrapped DIVs. We have existing classes for styling form fields but they expect disabled attributes which are only available on the input itself.

I thought classNames.input would do it, but that doesn't appear to work.

A few people have asked for this before the PRs were closed without explanation. #262 #95

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the handling for classNames and the rendering of the input element, distinguishing it from the wrapped DIVs. Trace how a caller can provide classes and review the existing tests before defining coverage that confirms the className reaches the input and does not rely on wrapper attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.