React-color: Disable opacity on Chrome and Sketch pickers

Created on 22 Sep 2016  路  2Comments  路  Source: casesandberg/react-color

This is an awesome project. I want to use some of the prebuilt pickers, but my use case doesn't include editing the opacity/alpha channel. It would be great if it were possible to disable opacity/alpha on these pickers even if it means not being exactly like the pickers they were inspired from.

Most helpful comment

Yep! This is a dupe of https://github.com/casesandberg/react-color/issues/99, you can use:

<ChromePicker disableAlpha="true" />
<SketchPicker disableAlpha="true" />

I have also created this issue to make sure this gets in the documentation! https://github.com/casesandberg/react-color/issues/241

All 2 comments

Yep! This is a dupe of https://github.com/casesandberg/react-color/issues/99, you can use:

<ChromePicker disableAlpha="true" />
<SketchPicker disableAlpha="true" />

I have also created this issue to make sure this gets in the documentation! https://github.com/casesandberg/react-color/issues/241

This link is helpful. Just one more query if we use it will disable opacity part from palette. But it will not change height of palette. How would I decrease height of div class 'flexbox-fix' in palette. So that we can remove extra height. Can someone please help to decrease height after disableAlpha="true" ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmgauthier picture dmgauthier  路  5Comments

foreverpinetree picture foreverpinetree  路  3Comments

louh picture louh  路  4Comments

imsheng picture imsheng  路  6Comments

jimmylinh picture jimmylinh  路  4Comments