Skip to content
Permalink
Browse files

Add ability to search currency selectors in Exchange view (#614)

  • Loading branch information...
sindresorhus committed Aug 1, 2019
1 parent c2d7531 commit 93f8cae359d1cf16c648f6e4429c3b468907571c
@@ -277,8 +277,11 @@
border-bottom: none;
}

.Select-option:hover,
.Select--multi .Select-option.is-focused {
.Select-option.is-focused {
background: var(--input-border-color);
}

.Select-option.is-selected {
background: var(--input-border-color);
color: var(--primary-color);
}
@@ -42,6 +42,7 @@ class Top extends React.Component {
return (
<div className="top">
<Select
searchable
className="currency-selector"
value={selectedCurrency.symbol}
options={selectData}
@@ -10,7 +10,8 @@
align-items: start;

.currency-selector {
.SelectOption__label {
.SelectOption__label,
.Select-input > input {
font-size: 16px;
font-weight: 500;
}
@@ -19,6 +20,15 @@
background: var(--input-lighter-background-color);
border-color: var(--input-lighter-border-color);
}

.Select-input {
padding-left: 38px;
}

.Select-input > input {
color: var(--text-color);
width: 150px !important; // stylelint-disable-line declaration-no-important
}
}

.balance {
@@ -53,7 +53,7 @@
"react-extras": "^0.9.0",
"react-i18next": "^8.4.0",
"react-popper": "1.0.0",
"react-select": "^1.2.1",
"react-select": "^1.3.0",
"react-transition-group": "^4.0.0",
"react-virtualized": "^9.21.0",
"read-blob": "^1.1.0",
@@ -10128,10 +10128,10 @@ react-resize-detector@~2.3.0:
prop-types "^15.6.0"
resize-observer-polyfill "^1.5.0"

react-select@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/react-select/-/react-select-1.2.1.tgz#a2fe58a569eb14dcaa6543816260b97e538120d1"
integrity sha512-vaCgT2bEl+uTyE/uKOEgzE5Dc/wLtzhnBvoHCeuLoJWc4WuadN6WQDhoL42DW+TziniZK2Gaqe/wUXydI3NSaQ==
react-select@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/react-select/-/react-select-1.3.0.tgz#1828ad5bf7f3e42a835c7e2d8cb13b5c20714876"
integrity sha512-g/QAU1HZrzSfxkwMAo/wzi6/ezdWye302RGZevsATec07hI/iSxcpB1hejFIp7V63DJ8mwuign6KmB3VjdlinQ==
dependencies:
classnames "^2.2.4"
prop-types "^15.5.8"

0 comments on commit 93f8cae

Please sign in to comment.
You can’t perform that action at this time.