diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-05 02:31:07 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-05 02:31:07 +0800 |
commit | 781ac00eac5d947b2c88159d38267386992a05f2 (patch) | |
tree | fc585834474783e8f90a0a7deb416173126ef431 /ui | |
parent | 650956934cca250c729e51ed6dbb4a35d4f8d705 (diff) | |
download | tangerine-wallet-browser-781ac00eac5d947b2c88159d38267386992a05f2.tar tangerine-wallet-browser-781ac00eac5d947b2c88159d38267386992a05f2.tar.gz tangerine-wallet-browser-781ac00eac5d947b2c88159d38267386992a05f2.tar.bz2 tangerine-wallet-browser-781ac00eac5d947b2c88159d38267386992a05f2.tar.lz tangerine-wallet-browser-781ac00eac5d947b2c88159d38267386992a05f2.tar.xz tangerine-wallet-browser-781ac00eac5d947b2c88159d38267386992a05f2.tar.zst tangerine-wallet-browser-781ac00eac5d947b2c88159d38267386992a05f2.zip |
Re-enable css transitions for dropdowns in header, needs menu-droppo library update
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/app.js | 2 | ||||
-rw-r--r-- | ui/app/components/account-dropdowns.js | 1 | ||||
-rw-r--r-- | ui/app/components/dropdown.js | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 0592496fc..620b4617a 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -218,6 +218,7 @@ App.prototype.renderNetworkDropdown = function () { const isOpen = state.isNetworkMenuOpen return h(Dropdown, { + useCssTransition: true, isOpen, onClickOutside: (event) => { const { classList } = event.target @@ -355,6 +356,7 @@ App.prototype.renderDropdown = function () { const isOpen = state.isMainMenuOpen return h(Dropdown, { + useCssTransition: true, isOpen: isOpen, zIndex: 11, onClickOutside: (event) => { diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js index da92619e1..b23600e9b 100644 --- a/ui/app/components/account-dropdowns.js +++ b/ui/app/components/account-dropdowns.js @@ -65,6 +65,7 @@ class AccountDropdowns extends Component { return h( Dropdown, { + useCssTransition: true, // Hardcoded because account selector is temporarily in app-header style: { marginLeft: '-238px', marginTop: '38px', diff --git a/ui/app/components/dropdown.js b/ui/app/components/dropdown.js index 8cdfc13e8..ef1a274c3 100644 --- a/ui/app/components/dropdown.js +++ b/ui/app/components/dropdown.js @@ -8,7 +8,7 @@ const noop = () => {} class Dropdown extends Component { render () { - const { isOpen, onClickOutside, style, innerStyle, children } = this.props + const { isOpen, onClickOutside, style, innerStyle, children, useCssTransition } = this.props const innerStyleDefaults = extend({ borderRadius: '4px', @@ -20,6 +20,7 @@ class Dropdown extends Component { return h( MenuDroppo, { + useCssTransition, isOpen, zIndex: 11, onClickOutside, @@ -43,6 +44,7 @@ class Dropdown extends Component { Dropdown.defaultProps = { isOpen: false, onClick: noop, + useCssTransition: false, } Dropdown.propTypes = { |