react-component / react-component/input-number
Multiple classes in `prefixCls` prop
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 323
- Forks
- 188
- Avg merge
- 20h 3m
- Merged PRs (30d)
- 1
Description
Hey! Great project.
Would there be any interest in a PR to allow the prefixCls prop to support multiple classes? The reason we need this is that (a) we want to scope our CSS classes in our own fashion using CSS modules (so prefixCls is perfect for that!) but (b) we also we need to append classes for our automation team so they can reliably target those elements for selenium. The two classes need to be separate - one for styling, one for targeting.
It's a very small change - just a single helper to construct the classes. I'd be happy to put something in.
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
Start by locating the TypeScript component entry point where the prefixCls prop is defined and where its class name is constructed. Confirm how multiple class values should be accepted and verify that styling and automation classes remain separate; the payload names no specific test file to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100