HIG for export share sheet
Summary: Following https://developer.apple.com/design/human-interface-guidelines/macos/buttons/push-buttons/, the primary button should be highlighted and the affirmative action be to the right. Clicked a few times on the wrong one myself. Reviewed By: priteshrnandgaonkar Differential Revision: D17762516 fbshipit-source-id: 6be35cfde26ca10142c2c98df30672c0f739c17e
This commit is contained in:
committed by
Facebook Github Bot
parent
f110ed2db7
commit
b6df1d1d6d
@@ -165,18 +165,18 @@ export default class SelectPluginSheet extends Component<Props, State> {
|
|||||||
<Padder paddingTop={8} paddingBottom={2}>
|
<Padder paddingTop={8} paddingBottom={2}>
|
||||||
<FlexRow>
|
<FlexRow>
|
||||||
<Spacer />
|
<Spacer />
|
||||||
|
<Button compact padded onClick={onHide}>
|
||||||
|
Close
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
compact
|
compact
|
||||||
padded
|
padded
|
||||||
type={'success'}
|
type="primary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
this.onSubmit(this.state.plugins);
|
this.onSubmit(this.state.plugins);
|
||||||
}}>
|
}}>
|
||||||
Submit
|
Submit
|
||||||
</Button>
|
</Button>
|
||||||
<Button compact padded onClick={onHide}>
|
|
||||||
Close
|
|
||||||
</Button>
|
|
||||||
</FlexRow>
|
</FlexRow>
|
||||||
</Padder>
|
</Padder>
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
Reference in New Issue
Block a user