jxnblk / jxnblk/react-x-ray

Ability to prevent child-content from being coloured

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
570
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Hi @jxnblk, I just added XRay to my project, working great! However, I was hoping I'd be able to colour the grid-lines separately to the child content. I see that in the code, you apply the CSS "color" rule and therefore it changes the colour of all text below it! I attempted to override this rule in the style prop, but the "color" rule is applied afterwards.

As a feature requests, It'd be ideal if this was possible?

Thanks!

PS: I also noticed that the style prop isn't supported in the propTypes, and therefore complains in dev mode. Unsure if this is by design or not!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the XRay component where the CSS color rule is applied and inspect how the style prop and propTypes are handled. Make grid-line coloring independent from child content and resolve the style-prop validation concern; verify that both behaviors work without changing existing layout debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, react
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
Half a day
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.