Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Add disabled state for bookmark modal button
Browse files Browse the repository at this point in the history
Auditors: @luixxiul
Close #9019
  • Loading branch information
cezaraugusto committed Jun 8, 2017
1 parent 28a2f72 commit e0756dd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/renderer/components/common/browserButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ class BrowserButton extends ImmutableComponent {
this.props.subtleItem && [styles.browserButton_default, styles.browserButton_subtleItem],
this.props.extensionItem && styles.browserButton_extensionItem,
this.props.groupedItem && styles.browserButton_groupedItem,
this.props.notificationItem && styles.browserButton_notificationItem
this.props.notificationItem && styles.browserButton_notificationItem,
// TODO: These are other button styles app-wise
// that needs to be refactored and included in this file
// .............................................
// this.props.smallItem && styles.browserButton_smallItem,
// this.props.actionItem && styles.browserButton_actionItem,
// this.props.navItem && styles.browserButton_navItem,
// this.props.panelItem && styles.browserButton_panelItem,

// note: this should be the last item so it can override other styles
this.props.disabled && styles.browserButton_disabled
]
}
render () {
Expand Down Expand Up @@ -178,6 +181,12 @@ const styles = StyleSheet.create({
':active': {
bottom: 0
}
},

browserButton_disabled: {
pointerEvents: 'none',
animation: 'none',
opacity: 0.25
}
})

Expand Down

0 comments on commit e0756dd

Please sign in to comment.