casesandberg / casesandberg/react-color

Enable customized style on SketchField component

Open
#631 0 comments 7 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

After customizing the color and other styles of the SketchPicker component, it is often necessary to alter the style of its sub component SketchField. In cases where dark background is applied on SketchPicker, the default black font for HEX/RGB beneath the input field won't show up. Currently I need to target the color property defined inline like in issue #596 . Would be great if there is a more direct way to alter the style.

```
.sketch-picker {
span {
color: white !important
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how SketchPicker styles its SketchField subcomponent and compare the existing inline color workaround described in issue #596. Define a direct style customization path for SketchField so text remains visible on dark backgrounds, without requiring the shown CSS override.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.