casesandberg / casesandberg/react-color

Allow us to set width for the color picker

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

Description

Look at this form:

![image](https://github.com/user-attachments/assets/bab82da1-aacb-44b0-a472-f56a4e8837a0)

I know I can create a parent component and only show the selected color and when clicked open the color picker. I also know that I can create a simple dialog where people would choose the color.

But I prefer to show the color picker inline due to some constraints related to this specific app.

If I could add `className="w-full"` then everything would be OK.

Allow us to specify the width for this component to be able to align it nicely when we use it inline.

Contributor guide

Open the contributing guide

Research direction

The issue does not identify a component file, entry point, or test. Start by locating the inline color-picker component and reviewing how its current width and styles are applied; done means consumers can specify a width, including a full-width class, and the inline picker aligns correctly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.