Skip to content

[Stashing] Address button order of stash diff viewer for Windows - #7301

Merged
shiftkey merged 5 commits into
developmentfrom
stash-diff-viewer-button-order
Apr 17, 2019
Merged

shiftkey merged 5 commits into
developmentfrom
stash-diff-viewer-button-order

Conversation

@outofambit

@outofambit outofambit commented Apr 15, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #7273

macOS
macOS

Windows (before)
Windows-Before

Windows (after)
Windows-After

☝️ is the same as before...

@outofambit outofambit added this to the 1.7.0 milestone Apr 15, 2019
@outofambit outofambit added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 15, 2019
@outofambit
outofambit requested a review from niik April 15, 2019 18:43
@iAmWillShepherd iAmWillShepherd self-assigned this Apr 15, 2019
@outofambit

Copy link
Copy Markdown
Contributor Author

hey @niik i took a quick stab at this, is this what you had in mind?

@iAmWillShepherd

Copy link
Copy Markdown
Contributor

@niik there is no difference in the UI made after the reorder. Is this because one of the buttons is a submit button within the ButtonGroup component? I think the ButtonGroup is responsible for ordering the buttons, so I'm not sure if this PR is needed other than to follow our conventions.

@outofambit

Copy link
Copy Markdown
Contributor Author

@shiftkey

Copy link
Copy Markdown
Member

Is this because one of the buttons is a submit button within the ButtonGroup component? I think the ButtonGroup is responsible for ordering the buttons, so I'm not sure if this PR is needed other than to follow our conventions.

@iAmWillShepherd @outofambit the missing piece to this change is the destructive prop on ButtonGroup. From the docs:

interface IButtonGroupProps {
/**
* Does the button group perform a destructive action? On macOS, this controls
* whether the submit button belongs on the left or right. This has no effect
* on other OSes.
*/
readonly destructive?: boolean
}

@iAmWillShepherd iAmWillShepherd changed the title fix button order of stash diff viewer [Stashing] Address button order of stash diff viewer for Windows Apr 15, 2019
@shiftkey shiftkey assigned shiftkey and unassigned niik Apr 17, 2019
@shiftkey
shiftkey removed the request for review from niik April 17, 2019 12:06

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think e2ca7ec did the trick.

MacOS (order now reversed):

Windows (unchanged):

@shiftkey
shiftkey merged commit 6677f34 into development Apr 17, 2019
@shiftkey
shiftkey deleted the stash-diff-viewer-button-order branch April 17, 2019 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Stashing] macOS button order is incorrect

4 participants