uiwjs / uiwjs/react-codemirror
className not working in zebraStripes
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to add zebraStripes on my codemirror and my goal here is to add zebraStripes to the line of code where the className = 'text-wrapper' but tehe feature isnt working. Can anyone help
Following is the code:
<CodeMirror
value={jsonData}
height="90vh"
theme="dark"
extensions={[langs.jsx(), zebraStripes({
className: "text-wrapper"
}),]}
onDoubleClick={(event, value) => {
handleDoubleClick(event, value);
}}
onChange={(value) => {
handleOnJsChange(value);
}}
/>
Screenshot:
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
Reproduce the reported behavior with the shown React CodeMirror configuration and inspect the zebraStripes extension entry point. Trace how the className option is applied, then verify that the text-wrapper class appears on the intended line and add focused coverage if the repository already tests this behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100