Skip to content

Commit

Permalink
Add style for disabled state (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
estambakio-sc authored Oct 4, 2019
1 parent 5d6d36e commit 6c44912
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Meta-Info | Value
-- | --
ExtProjectId | ???
Original Estimation | ???h
Remaining Estimation | ???h
17 changes: 17 additions & 0 deletions src/client/components/Async/Async.DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ See documentation of [react-select](https://github.com/JedWatson/react-select)
}
/>
</div>
<div style={{ marginBottom: '20px' }}>
<Async
innerRef={ref => console.log(ref)}
loadOptions={
(inputValue, callback) => {
setTimeout(() => {
callback([
{ value: 'one', label: 'One' },
{ value: 'two', label: 'Two' }
].filter(item=>item.value === inputValue || item.label === inputValue));
}, 1000);
}
}
isDisabled={true}
placeholder='Select isDisabled=true'
/>
</div>
<Async
loadOptions={
(inputValue, callback) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ See documentation of [react-select](https://github.com/JedWatson/react-select)
}
/>
</div>
<div style={{ marginBottom: '20px' }}>
<AsyncCreatable
innerRef={ref => console.log(ref)}
loadOptions={
(inputValue, callback) => {
setTimeout(() => {
callback([
{ value: 'one', label: 'One' },
{ value: 'two', label: 'Two' }
].filter(item=>item.value === inputValue || item.label === inputValue));
}, 1000);
}
}
isDisabled={true}
placeholder='Select isDisabled=true'
/>
</div>
<AsyncCreatable
loadOptions={
(inputValue, callback) => {
Expand Down
15 changes: 15 additions & 0 deletions src/client/components/Creatable/Creatable.DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ See documentation of [react-select](https://github.com/JedWatson/react-select)
]}
isMulti
/>
</div>
<div style={{ marginBottom: '20px' }}>
<Creatable
innerRef={ref => console.log(ref)}
options={[
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', value: 'caramel' },
{ label: 'Cookies and Cream', value: 'cookiescream' },
{ label: 'Peppermint', value: 'peppermint' }
]}
isDisabled={true}
placeholder='Select isDisabled=true'
/>
</div>
<Creatable
options={[
Expand Down
16 changes: 16 additions & 0 deletions src/client/components/Select/Select.DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@ See documentation of [react-select](https://github.com/JedWatson/react-select)
value={_scope.state.value}
/>
</div>
<div style={{ marginBottom: '20px' }}>
<Select
options={[
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', value: 'caramel' },
{ label: 'Cookies and Cream', value: 'cookiescream' },
{ label: 'Peppermint', value: 'peppermint' }
]}
isDisabled={true}
placeholder='Select isDisabled=true'
onChange={_scope.handleChange}
value={_scope.state.value}
/>
</div>
<Select
options={[
{ label: 'Chocolate', value: 'chocolate' },
Expand Down
4 changes: 4 additions & 0 deletions src/client/components/Select/SelectCustom.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
}
}
}

&--is-disabled {
background-color: #eeeeee;
}
}

&__multi-value {
Expand Down

0 comments on commit 6c44912

Please sign in to comment.