Skip to content

Commit

Permalink
Enlarge the SearchFilter's 'X' hitbox (keybase#19310)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjb authored Sep 10, 2019
1 parent fd0c1a1 commit ba2f08e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions shared/common-adapters/search-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,14 @@ class SearchFilter extends React.PureComponent<Props, State> {
}
if (Styles.isMobile) {
return (
<Kb.Icon
type="iconfont-remove"
sizeType={this._iconSizeType()}
onClick={this.props.mobileCancelButton ? this._clear : this._cancel}
color={this._iconColor()}
style={styles.removeIconNonFullWidth}
/>
<Kb.ClickableBox onClick={this.props.mobileCancelButton ? this._clear : this._cancel}>
<Kb.Icon
type="iconfont-remove"
sizeType={this._iconSizeType()}
color={this._iconColor()}
style={styles.removeIconNonFullWidth}
/>
</Kb.ClickableBox>
)
} else {
return (
Expand Down Expand Up @@ -381,7 +382,7 @@ const styles = Styles.styleSheetCreate(() => ({
marginLeft: Styles.globalMargins.xsmall,
},
removeIconNonFullWidth: {
marginLeft: Styles.globalMargins.tiny,
margin: Styles.globalMargins.tiny,
},
spinnerFullWidth: {
height: 16,
Expand Down

0 comments on commit ba2f08e

Please sign in to comment.