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

Add disabled state for bookmark modal button #9321

Merged
merged 1 commit into from
Jun 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion app/renderer/components/common/browserButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ class BrowserButton extends ImmutableComponent {
[styles.browserButton_default, styles.browserButton_subtleItem, styles.browserButton_actionItem],
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.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 @@ -191,6 +194,12 @@ const styles = StyleSheet.create({

browserButton_actionItem: {
background: globalStyles.button.action.backgroundColor
},

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

Expand Down