I'm sorry if this has been discussed before, I spent about 5 minutes searching to find a topic on this, but was unable to.
I've been trying to come up with a standard for my application dialog buttons because the 3 developers on my team all do it differently (and differently for the same person too). This could be extremely confusing to the users so I am attempting to add a little sanity to my application.
We've got dialogs that always have footer buttons, the buttons can vary in meaning and number, but we always have at least one Primary Action and one Cancel Action, unless they both are the same, at which there's just the primary action that closes the dialog.
I've already come up with a visual styling to indicate higher weighting on the primary action (in my example the darker green with white text, as the lighter green is common place in the theme). The consensus is that the buttons should be floated to the right edge of the screen to drive the eye from top left to bottom right.
The dillema is over what is logical to the user:
1) Flowed Left-To-Right like writing, the first thing is the most important:
2) Flowed Right-To-Left like a Forward/Back Button, where progression is moving rightward, and regression is moving leftward.
Any ideas and reasoning would be amazing.