4

A lot of UI Framework provide 2 different types of buttons: 1) The first one: a sort of confirmation button 2) The secondo one: used as a "cancel" button

The UI of the two buttons could be different: different colors, background, borders, etc... and it could happen to find a confirmation button with a defined padding and background color while a cancel button has the same size in terms of padding and height but with a transparent background color.

My question is the following one: Why the 2 buttons are they consistent in terms of size? Is it a bad approach changing the size of the cancel button? What's the pro having the same size?

5

You may want to keep the same size for the following two reasons :

  • Different sizes creates contrast, that creates visual clutter.
  • Placing same size buttons around a virtual vertical axis creates symmetry, which is regarded as more pleasing, formal and stable.

But, if you have more important design goals, i.e. attract user attention, space limitations etc, you may use different sizes.

2

Cancel and Confirm as just two choices at the end of a scenario which from a user's perspective have equal importance. If you make one of the two buttons more visible (either by using size or color) then you are influencing his decision. Some times you actually want to influence user's decision but others you don't. If you intend to influence his decision making, you can make one of the two buttons large or more visible.

Then there is a second aspect to consider which @DesignerAnalyst has addressed and that is more around visual aspects. If you decide to influence user's decision making, you'd be better of using varying color contrasts than varying sizes.

Hope this answers your question.

0

Cancel and Confirm typically just happen to have same size buttons. There's really no UX principle supporting same size primary and secondary buttons

In fact, a larger confirm button is preferred to emphasize the primary action. This is why a lot of cancel and undo actions on the web are styled as a link (e.g. UX.SE's post answer form) to give the primary action more weight.

You can read more about visual weight from the article referenced by @DasBesto https://uxmag.com/articles/visual-balance-and-weight-allocation-for-usability

Then why are cancel and confirm buttons usually the same size?

  1. The word "Cancel" and "Confirm" have very similar length.

Buttons length by default are determined by the length of its content. Since Cancel and Confirm are very similar in length, you get similar size buttons.

  1. Buttons on touch screen needs to be large.

On a mobile device, you need large tappable buttons. With a modal, to facilitate tapping, you make the buttons span the entire width. Cancel and Confirm are made the same size as a compromise to ensure both buttons are easy to tap on. This is okay because color also provides strong visual weight. As long as your Confirm button color make it stand out from your Cancel button, having the two button be the same size isn't that big a deal.

0

I think you just want to take focus away from the destructive action. By having a cancel or delete button smaller or less focused, there's less chance of an accidental action that has harmful effects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.