From 43629d0fd4082035077f39a924bcd4b51ff00ded Mon Sep 17 00:00:00 2001 From: oconnorct1 Date: Sun, 7 May 2017 02:17:31 -0400 Subject: [PATCH] card / update dropdown --- js/src/ui/Container/container.js | 3 ++- js/src/ui/Dropdown/dropdown.css | 5 +++++ js/src/ui/Dropdown/dropdown.js | 11 ++++++++--- .../Account/Shapeshift/OptionsStep/optionsStep.js | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/js/src/ui/Container/container.js b/js/src/ui/Container/container.js index 5b6dbdcf9..5e4eb52b1 100644 --- a/js/src/ui/Container/container.js +++ b/js/src/ui/Container/container.js @@ -16,7 +16,7 @@ import React, { Component, PropTypes } from 'react'; import { Link } from 'react-router'; -import { Card } from 'material-ui/Card'; +import { Card } from 'semantic-ui-react'; import { nodeOrStringProptype } from '~/util/proptypes'; @@ -58,6 +58,7 @@ export default class Container extends Component { } onClick={ onClick } onFocus={ onFocus } + fluid > { this.renderTitle() } { children } diff --git a/js/src/ui/Dropdown/dropdown.css b/js/src/ui/Dropdown/dropdown.css index 5a55efaef..07f3e3df9 100644 --- a/js/src/ui/Dropdown/dropdown.css +++ b/js/src/ui/Dropdown/dropdown.css @@ -14,3 +14,8 @@ /* You should have received a copy of the GNU General Public License /* along with Parity. If not, see . */ + +.dropdown { + position: relative; + display: block; +} diff --git a/js/src/ui/Dropdown/dropdown.js b/js/src/ui/Dropdown/dropdown.js index 0a3b0f314..8a0e5e1bf 100644 --- a/js/src/ui/Dropdown/dropdown.js +++ b/js/src/ui/Dropdown/dropdown.js @@ -31,14 +31,18 @@ import React, { PropTypes } from 'react'; import { Dropdown as DropdownUI } from 'semantic-ui-react'; -export default function Dropdown ({ defaultValue, disabled, fluid, icon, name, onChange, onClick, onClose, onFocus, options, placeholder, scrolling, search, selection, text, value }) { +import styles from './dropdown.css'; + +export default function Dropdown ({ defaultValue, disabled, fluid, icon, name, onBlur, onChange, onClick, onClose, onFocus, options, placeholder, scrolling, search, selection, text, value }) { return (