casesandberg / casesandberg/react-color

Adjust BlockPicker's Preview height

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

Description

Currently the preview height is fixed to 110px and there is no way to change it.

![image](https://user-images.githubusercontent.com/45073703/112842293-39f03c80-90c3-11eb-9384-de97b3eb6233.png)

![image](https://user-images.githubusercontent.com/45073703/112842544-7a4fba80-90c3-11eb-843e-1d373cf1a985.png)

Adding a class to preview div would be great. Thus way it can be customized.

Contributor guide

Open the contributing guide

Research direction

Locate the BlockPicker implementation and find the preview div whose height is fixed at 110px. Review how the component exposes styling or class names, then add a way for callers to customize that preview element. Done means consumers can target the preview and change its height without altering the component source.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.