Comments (5)
I'm also running into the last swatch not being selectable issue.
For those looking for a workaround: pass the color
prop as HSL values instead of HEX.
Thank you for all your hard work, @casesandberg!
Edit
Per the swatches, it sounds like you would like to see the color is passed down in the center and the outside swatches + and - brightness of that color? Is that correct?
This is the behavior I expected as well, would love to see this implemented!
from react-color.
Just to add a bit more info to this: It seems to be when I add onChangeComplete and color to control the hex state in my component.
<ColorPicker type="slider" onChangeComplete={this.handleBackground} color={this.state.background} />
with
getInitialState(){
return {
background: '1861A9'
};
},
handleBackground(swatch){
this.setState({
background: swatch.hex
});
},
so none of the 5 swatches are selected (whereas, with no props used the last swatch is usually selected). Selecting any of the first 4 swatches works normally. Selecting the last swatch WILL change the background state, but it will not 'select' the last swatch (ie, it grows in size briefly, then shrinks again as if not selected)
from react-color.
@MFIMichael thanks for more details about this!
Per the swatches, it sounds like you would like to see the color is passed down in the center and the outside swatches + and - brightness of that color? Is that correct?
As for the last swatch not being selectable, that is current a known problem with the color conversion library I am using at the moment. I am going to be switching to a different one here within the next few days which should fix the issue!
from react-color.
Thanks! And yes, my expectations are as you have described. :)
from react-color.
Going to track this in the v3.0.0 milestone to make sure it gets in there!
from react-color.
Related Issues (20)
- The link to reactcss in the Readme file is broaken
- Labels for color settings is misaligned (PhotoshopPicker) HOT 1
- disabling hex color input auto complete ( #rgb )
- how to resolve Warning: Prop `style` did not match. HOT 3
- Hex8 HOT 2
- Saturation component changes hue
- ChromePicker alpha background HOT 1
- Color-Picker Eyedropper is not working for Windows OS Chrome
- Type 'CSSProperties' is not assignable to type 'Partial<SketchPickerStylesProps>' HOT 1
- Educate developers on the existence of a native color picker HOT 1
- Its instance type 'TwitterPicker' is not a valid JSX element HOT 3
- Add None or transparent option HOT 3
- Flikering issue in slider Hue component
- ChromePicker Alpha channel reverts to 1 when changing RGB inputs HOT 2
- Checkboard: Support for defaultProps will be removed from function components HOT 6
- NPM: No matching version found for [email protected]. HOT 1
- a cool online photoshop with javascript
- The issue I'm encountering with the React-Color color picker is that I'm unable to slide and select colors. What could be the reason for this? HOT 5
- Warning: Chrome: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. HOT 2
- Color picker closing automatically on clicking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-color.