react-component / react-component/slider

Root class rules are overridden by style

Open
#416 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.1k
Forks
768
Avg merge
11d 22h
Merged PRs (30d)
5

Description

When adding a className to the root element you might want to set a height for instance. This is overridden by the component style.

Options to fix:

  • add a rootStyle prop
  • document in the readme that this is the case and that you might need !important for some things (this is what I do now but it feels inelegant)

EDIT:
Just found out there is also a style prop of course that works fine. It might be nice to document that :)

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

The issue identifies the existing style prop as the working solution and suggests documenting it. Start with the README and its component props documentation; explain that style can be used for root styling, then verify that the documented behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.