Skip to content

Commit

Permalink
Merge pull request #4594 from sepehrity/fix/border-css-style
Browse files Browse the repository at this point in the history
[DOC] fix: border css control styles
  • Loading branch information
JedWatson authored Jul 22, 2021
2 parents 9927449 + 11593c9 commit e2e3b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/CustomControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import React, { Component } from 'react';
import Select, { components, ControlProps } from 'react-select';
import { ColourOption, colourOptions } from '../data';
const controlStyles = {
borderRadius: '1px solid black',
border: '1px solid black',
padding: '5px',
background: colourOptions[2].color,
color: 'white',
};

const ControlComponent = (props: ControlProps<ColourOption, false>) => (
<div style={controlStyles}>
{<p>Custom Control</p>}
<p>Custom Control</p>
<components.Control {...props} />
</div>
);
Expand Down

0 comments on commit e2e3b39

Please sign in to comment.