You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Weird order of buttons and default focus on dialog boxes #1311
Ever since starting to use Desktop TNG, the "discard changes" dialog box has been tripping me up. I realized that it's because it's not following macOS HIG. So it's buttons are in a different order than every other dialog/warning box on the system.
The default is that the actual go-ahead action should be on the right, focused, with the cancel/dismiss action on the right.
I know that Desktop TNG isn't JUST a macOS app, but using macOS opinions isn't a bad default state. And I'm not even sure Windows has opinions on how this presentation should exist .
Yeah good catch. This one's weird in that the action button should be on the right, but the default button should be Cancel since it's a destructive action.
Another good example is Title Casing vs Sentence casing in buttons and titles and we try to follow platform conventions there as well.
In this particular case it does get weird as @joshaber says. Ironically it gets weird because we tried to follow the HIG for dangerous actions. I guess we'll need more state than just default/secondary.
Activity
joshaber commentedon Apr 27, 2017
Yeah good catch. This one's weird in that the action button should be on the right, but the default button should be Cancel since it's a destructive action.
niik commentedon Apr 27, 2017
Platform specific behaviors such as this is really important to us and when there's disparity between platforms we should put in the work to adapt on each platform rather than pick one. In this particular case we actually try pretty hard to arrange the buttons in dialogs in the order that's expected on each platform, see https://github.com/desktop/desktop/blob/master/app/src/ui/lib/button-group.tsx.
Another good example is
Title CasingvsSentence casingin buttons and titles and we try to follow platform conventions there as well.In this particular case it does get weird as @joshaber says. Ironically it gets weird because we tried to follow the HIG for dangerous actions. I guess we'll need more state than just default/secondary.