The checkout button has been clear over on the right of the window, which makes it hard to find (for me at least). And we don't want the Cancel button to be more prominent than the Continue button do we? This patch removes the CSS that caused that.

Before the patch (and this is more exaggerated with a wider window)
Before patch - buttons far spread

After the patch:

After patch - near each other

Comments

rszrama’s picture

I wonder if we should theme the "Cancel" / "Back" buttons to look like links? Perhaps they should even be located as #suffix to the main submit element as with the confirmation forms?

rfay’s picture

That would make sense to me. And the "Continue" button should come first, IMO.

Bojhan’s picture

Yes, cancel should be link.

Visual orientation bug caused by lack of prominence in the visual design of the continue button.

rfay’s picture

Took a look at making this a link. I was expecting it to be just a regular link-type behavior, but cancel actually is a FAPI behavior that uses $form_state, takes an action, and emits a log message. Not sure it needs to be that complex, but as it is, its normal state is as a button, FAPI wise. I'm not sure how to use CSS to change a button to visually look like a link, but gladly accept hints.

rszrama’s picture

Yeah, sorry, I clarified this with Bojhan in IRC but didn't clarify here... it has to be a button b/c it's updating the order status and allowing for variable redirects when Back / Cancel is submitted. Acquia Prosper has an example of theming a button to look like a regular ol' link... I'm not sure what will work for us here. I know Seven has some code as well for differently themed buttons.

rszrama’s picture

Status: Needs review » Needs work

We'll need more than just the CSS change based on comments above.

mikejoconnor’s picture

Category: bug » feature
Issue tags: +low-hanging fruit

Marking as a feature request. I definitely think it needs to be fixed, but its not really a bug.

Additionally, we should consider this. http://www.lukew.com/resources/articles/PSactions.asp

rszrama’s picture

Status: Needs work » Fixed
StatusFileSize
new11.33 KB
new11.13 KB

Alrighty, finally nailing this one. I went with link styling, and though the "link" colors may not be right for every theme, they can be easily overridden. Also, the continue button is now the default button used when a user hits enter on the form. No more accidental cancellations.

Screenshots attached (although note that I changed it so underlining only shows on focus / hover).

Commit: http://drupalcode.org/project/commerce.git/commitdiff/aae3d5e

rfay’s picture

Nice! Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

brianlp’s picture

Call me crazy, but I think the "proceed" item should be right and the "back" item to the left. Simply because intuitively forward is right and backwards is left. If I wanted to go forward, I would click the right side.

rszrama’s picture

That was my gut feeling as well, but I can't argue with usability studies. They indicate that a single submit button on the far left is the first thing noticed by the eye when scanning down a form and filling in fields, with a visual de-emphasis on the "back" option best to prevent people from wasting time reading all the buttons when they really just want to go forward.

brianlp’s picture

StatusFileSize
new7.28 KB

Yes it's probably a good idea to place them both to the left. What I meant is that the order of the buttons is inverted by adding the text.

Visual distinciton is clearly needed although I doubt that switching to button+text+link is ideal but makes it rather hard to capture. (But maybe it was part of the study findings.)

Two buttons indicating what's going on seems to me the most useful way by highlighting the "continue" part.

continue button

rszrama’s picture

Have you read the study linked in #4 above? It's not about visualizing forward / backward, it's about emphasizing the primary action - which most store owners would hope is "continue". : )

brianlp’s picture

Ok I have overseen that link, thanks. I was curious about this study as you mentioned it. I'm very interested in this kind of stuff...