mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
styling select dropdown
This commit is contained in:
parent
cb410b58f7
commit
1503459695
@ -1,13 +1,30 @@
|
||||
const React = require('react');
|
||||
const styled = require('styled-components');
|
||||
|
||||
const Row = require('@ui/components/row');
|
||||
const Column = require('@ui/components/column');
|
||||
const Button = require('@ui/components/button');
|
||||
|
||||
const {
|
||||
default: Styled
|
||||
} = styled;
|
||||
|
||||
// TOOD: Require from UI Components - causes issue ATM.
|
||||
const Select = require('react-select');
|
||||
require('react-select/dist/react-select.css');
|
||||
|
||||
const SelectWrapper = Styled.div`
|
||||
|
||||
.Select-menu-outer {
|
||||
margin-top: 48px;
|
||||
}
|
||||
|
||||
.Select-arrow {
|
||||
position: relative;
|
||||
top: -4px;
|
||||
}
|
||||
`;
|
||||
|
||||
const Invite = React.createClass({
|
||||
|
||||
propTypes: {
|
||||
@ -66,6 +83,7 @@ const Invite = React.createClass({
|
||||
width: '75%',
|
||||
minHeight: '50px',
|
||||
marginBottom: '20px',
|
||||
paddingTop: '10px'
|
||||
};
|
||||
|
||||
const AddButtonStyle = {
|
||||
@ -94,6 +112,7 @@ const Invite = React.createClass({
|
||||
<Row>
|
||||
<Column xs={12}>
|
||||
<form onSubmit={this.handleSubmit}>
|
||||
<SelectWrapper>
|
||||
<Select.Creatable
|
||||
aria-label="member select"
|
||||
onChange={handleSelectChange}
|
||||
@ -103,6 +122,7 @@ const Invite = React.createClass({
|
||||
style={InputStyle}
|
||||
value={this.state.selectValue}
|
||||
/>
|
||||
</SelectWrapper>
|
||||
<Button
|
||||
secondary
|
||||
style={AddButtonStyle}
|
||||
|
Loading…
Reference in New Issue
Block a user