We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c48ad commit ce5f5abCopy full SHA for ce5f5ab
webpack_in/entry.jsx
@@ -305,12 +305,20 @@ class ColorSelector extends React.Component {
305
render() {
306
const { color } = this.state;
307
308
+ const colorOpposite = {
309
+ r: 255 - color.r,
310
+ g: 255 - color.g,
311
+ b: 255 - color.b
312
+ };
313
+
314
return (
315
<div style={ objStyleCommon }>
316
<div style={{ margin: '1em auto',
317
width: '70%',
318
height: '3em',
- border: 'solid 2px black',
319
+ border: `solid 2px rgb(${colorOpposite.r},
320
+ ${colorOpposite.g},
321
+ ${colorOpposite.b})`,
322
backgroundColor: `rgb(${color.r}, ${color.g}, ${color.b})`}} />
323
<div style={{ marginTop: '-1em'}}>
324
<ColorComponentEntry label="R" value={ this.state.color.r } onChangeValue={
0 commit comments