react-component / react-component/input-number
Allow passing className for the input element
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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