Skip to content

Commit

Permalink
Removed arrowicon, use ffe-form dropdown styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Torgeir Pedersen Cook committed Mar 17, 2017
1 parent 48f2cfe commit 135e2a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/selectors/base-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class BaseSelector extends Component {
const {showSuggestions, highlightedSuggestionIndex, suggestionListId} = this.state;
return (
<div
className='base-selector'
className='base-selector ffe-input-group'
>
<Input
inputFieldRef={(input) => {
Expand Down
9 changes: 2 additions & 7 deletions src/selectors/input-field.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { PropTypes, Component } from 'react';
import classNames from 'classnames';
import ChevronIkon from 'ffe-icons-react/chevron-ikon';
import KryssIkon from 'ffe-icons-react/kryss-ikon';

class Input extends Component {
Expand Down Expand Up @@ -32,14 +30,14 @@ class Input extends Component {
>
<input
onChange={ (e) => {onChange(e.target.value);}}
className='ffe-input-field input-field'
className='ffe-input-field ffe-dropdown input-field'
onKeyDown={ onKeyDown }
autoComplete='off'
value={ value }
id={ id }
placeholder={ placeholder }
ref={inputFieldRef}
aria-invalid={ ariaInvalid } // add aria with hoc?
aria-invalid={ ariaInvalid }
aria-autocomplete='list'
/>
{ value.length > 0 &&
Expand All @@ -53,9 +51,6 @@ class Input extends Component {
<KryssIkon className='reset-button-icon'/>
</button>
}
<div className={classNames('arrow-icon', {'arrow-icon--up': isSuggestionsShowing })}>
<ChevronIkon focusable={ false }/>
</div>
</div>
);
}
Expand Down
18 changes: 0 additions & 18 deletions styles/base-selector.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,6 @@
}
}

.arrow-icon {
position: absolute;
top: 16px;
right: 10px;

svg {
width: 14px;
height: 14px;
fill: @ffe-blue-royal-light-wcag;
}

&--up {
svg {
transform: rotate(180deg);
}
}
}

.reset-button {
position: absolute;
right: 35px;
Expand Down

0 comments on commit 135e2a7

Please sign in to comment.