File tree Expand file tree Collapse file tree
packages/patternfly-4/react-core/src/components/Select Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
22import styles from '@patternfly/patternfly/components/Select/select.css' ;
3+ import buttonStyles from '@patternfly/patternfly/components/Button/button.css' ;
34import { css } from '@patternfly/react-styles' ;
45import PropTypes from 'prop-types' ;
56import { CaretDownIcon } from '@patternfly/react-icons' ;
@@ -157,7 +158,12 @@ class SelectToggle extends Component {
157158 onKeyDown = { this . onKeyDown }
158159 >
159160 { children }
160- < CaretDownIcon className = { css ( styles . selectToggleArrow ) } />
161+ { isTypeahead && (
162+ < button className = { css ( buttonStyles . button , styles . selectToggleButton ) } >
163+ < CaretDownIcon className = { css ( styles . selectToggleArrow ) } />
164+ </ button >
165+ ) }
166+ { ! isTypeahead && < CaretDownIcon className = { css ( styles . selectToggleArrow ) } /> }
161167 </ ToggleComponent >
162168 ) ;
163169 }
You can’t perform that action at this time.
0 commit comments