Because of user experience, should confirmation buttons be left or right?

Asked

Viewed 4,072 times

25

I have this doubt. We are setting up a system where there is a modal that asks the user whether he wants to perform such an operation or not.

My question arose regarding the position of the confirmation button, whether it should be on the right or left, due to user experience.

I always put the "Yes" button to the right if the buttons are aligned to the right, and to the left if it is aligned to the left.

Example:

<div style="text-align:right">
<button>Não</button>
<button>Sim</button>
</div>

<div style="text-align:left">
<button>Sim</button>
<button>Não</button>
</div>

But this is a pattern I "learned alone". But I worry about the issue of user experience.

I currently have a modal that is this way:

inserir a descrição da imagem aqui

However, as the buttons are centered, I wonder what would be the best alignment of the "Yes" button, to improve the user experience.

So I have the following doubts:

  • For user experience reasons, confirmation buttons should be left or right?

  • The alignment of the buttons would influence where I should align them?

  • Centered button alignment, the "Yes" button, due to user experience, should be aligned to the right?

  • Important reading: http://tableless.com.br/padroes-de-ux-mal/

4 answers

14


Necessary introduction

First of all, a clarification about what is a "user experience issue" (otherwise, all content here is simply too generic to receive closing votes or mistaken arguments that it is just based on opinions). Consider the following diagram (based on the book Designing Pleasurable Products):

inserir a descrição da imagem aqui

This pyramid is directly inspired by Maslow pyramid, only that instead of addressing the primary needs of human beings in general, it addresses the primary needs of human beings in relation to a product whichever. The idea is that there is a hierarchy of importance, so that the function (functionality) of a product is the most immediately relevant, followed by how easy it is to use (usability) and finally how pleasant it is to use it (pleasure). User experience is the result of all these levels when a product (in our case, a software product) is used by a person.

Button placement

Your question is essentially about the placement of buttons. But in the example you provide, there is no immediately correct answer. You mention the following:

"I always put the "Yes" button right on if the buttons are right aligned, left aligned."

This is also not necessarily wrong unless you make these distinctions in the same software system or in the same family of applications. If you want to facilitate the use by your users (second level in the pyramid - usability), it is good to maintain the same standard throughout the application.

So in that case, choose a pattern and always use it. I would say that since our writing/reading (Western) is done from left to right and from top to bottom, perhaps it makes sense to leave the most relevant button in front of the other (by "forward", means more to the right/above), since it will be read first. But in reality this matters little in binary decisions, as the user will still need to stop to read and understand the question, and also read both options available to make his decision. In this respect, the use of pattern only makes it easier because if the user trusts that the pattern is maintained, he can read only the message and then safely click on the appropriate button using only the right/left or up/down criteria.

Other issues that may be more relevant

In addition to positioning (which is what you actually ask), there are other aspects that may be relevant to the user experience in your interface and that you don’t mention (perhaps because you haven’t even noticed them). It’s them:

  1. Colors. Is the interaction in your system based on mouse and/or touch, or does the user use some other way? If the interaction depends on mouse click or touch with your fingers, the color setting has little impact. In your example you would only be emphasizing the "Yes" button, but the user has little to doubt. But, imagine a system where the user uses the arrow keys (or the directional button of a joystick in a video game) to change the "selection" of the active button, and then presses ENTER (or the X button) to activate the current selection. In this case, the choice of colors is critical to avoid confusion. Especially in binary choices! If I only have two different color options, and when pressing an arrow the "selection" changes from one to the other, how do I know which one is actually selected? In your example image, what would selection mean in this context? Is it the darkest color (red gradient), or is it the lightest color (gray)? In his example the user may infer that it is the darkest color given the fact that the whole environment is clearer, but this indication would be much more clearly given if by changing the selection an animation literally moved the "check box" more slowly from one option to the other. In non-binary decisions this problem is less critical, because the user realizes by changing the selection that there is only one of many options that is actually different.

  2. Unnecessary interruption. A dialog box of this type aims to ask the user for relevant information or to prevent them from making mistakes. The classic example of this is in MS Word, when you typed all your TCC, not yet saved the changes, and click on the "exit" menu. The software interrupts you and asks you if you really want to leave without recording, thus preventing you from making a terrible mistake and having a bad usage experience. But, this does not mean that the use of dialog boxes should be a pattern used indiscriminately. One question you should ask yourself is: is this interruption really relevant to the usage process? For example, I use a flashlight app on my phone that every time I choose the "go out" option it interrupts me with the question: "Are you sure you want to go out?". And I think, "No! I just clicked 'get out' because I missed reading that message!". This is very annoying at times when I want to quickly switch between applications. There is no danger in letting me proceed immediately with the action, as there is no potential loss of anything. In your case, the first part of the message has a bit of that character ("Are you sure you want to do what you just requested?"), and maybe only the second part has some protection foundation in usability (again, second level of the pyramid). But, there are more pleasant ways to do that protection (moving now to the third level of the pyramid - pleasure). For example, assuming that the product conference was done in a previous form and needs to be certified by the user, you can use a checkbox that only when selected enables the continue button. And so, you avoid a totally unnecessary and disruptive dialogue box.

  3. Use of space. The idea of centering the buttons is to give the user a sense of taking advantage of space. This is related to our perceptual abilities. When a dialog box is displayed, our gaze first goes through the most central part and only then vague to the other peripheral areas (being attracted then by more constricting signs). It is worth analyzing the available area versus the size of the displayed text messages. It may be possible to increase the size of the buttons and font of your texts, to make it easier also for users with reading difficulties.

7

What are the best practices in button alignment ?

This various issue of layout for layout but you can notice that the modal buttons are aligned on the right, the buttons should be organized in order of importance, I mean by use, imagine the insertion of a post on a social network. It will highlight the button Post more to the right than Cancel, because he understands that it will be the most likely action of the user.

This same concept can be taken to other types of layout such as a multi-step form (Steps), buttons are usually used to the right by stating Next, or Proceed.

Left-aligned buttons are usually used to complete an action, example contact form.

When it’s good to align the buttons to the center?

It is interesting to line up at the center when you want to highlight some information. For example, if you leave your Yes/No 30% larger and put a flashy text.

Advised: Identify the cases cited above and align your layout as each situation, it is bad to enter a system that has buttons aligned on the left, right and center. Standardizing helps a lot.

Recommending: User Experience - What are the best Practices of button Alignment?

  • You helped the modal friend to change his mind ;)

6

In the case of UX, for a better user experience, the provisions of the elements should be positioned in a way that guides the user to a better response.

The user cannot be asked or prompted to perform an action in certain situations like this. For example, we read from left to right and obviously two buttons a "Red" and a white, even if I want to click on white prompts me to click on red. So, first the buttons should be the same color because then the user will not be influenced in the action. About being on the left or right side I believe I have no problem if the colors are equal because repeating, so you play the decision to the user without intervention.

  • 4

    I agree that the important thing is to guide the user to a better answer. And so even sometimes what is needed is rather to influence the user in the action. An example are the confirmations of dangerous operations, ;))

  • "Want to drop database" should be on which side @bfavaretto? kkkkk

  • @bfavaretto agree with you yes and believe then that depends on the objective of the action, in the case of this modal should not influence because the user needs to check the products before clicking on one of the buttons. because it is written "you are sure you want to confirm receipt...".

4

You could research more about IHC (computer human interaction), but I can tell you that there is no right answer to your question, your questions are extremely variable. Because the focus is user experience.

Users may be accessing from different locations, they may be from different cultures, they may use different writing systems, different devices, and even the fact that being right-handed or left-handed can influence the user experience (I’m not saying that the web-designer should magically know all this or foresee all the possibilities).

Not to mention the issue of color palettes, alignment, typography and other related design things.

To say that an element should be in a specific coordinate is simply opinion, theory. In practice, the important thing is to be intuitive and coherent (maintain a standard).

  • About being right-handed and left-handed: There’s no way the developer can guess that. In relation to other cultures, I agree in parts, because usually some systems are developed for "the world", and others "for locality"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.