Page MenuHomePhabricator

Flow: buttons wrap onto new line infelicitously when editing post.
Closed, ResolvedPublic

Description

multi-line button alignment issues in Chromium

When editing a reply, the indent plus the 50% wide terms of use plus the longer [Submit changes] text lead to buttons wrapping onto a second line.

Even if we tweak the design (more wrapping, quiet "Cancel" button, etc.), the buttons are going to wrap in some languages, so Agora should handle this better. We should recheck when Flow uses the Agora in core, but for now I notice:

  • Buttons butt up against each other vertically, there's no spacing.
  • The middle Preview button isn't fully right-aligned (in Chromium but OK in Firefox). I think it has a gap to its right for whitespace to the next button even though the next button is on the next line. If I add a button myself in Chromium developer inspector it doesn't have a separate closing </input> and seems to align properly.
  • When I pointed out a similar issue with the Login form, Jared wanted the main CTA to be on the first row, with other buttons below, which I think is doable if each button is float-right and we swap ordering, but will have strange tab behavior.

If it happens with local Agora-override styles removed then this bug should move to core Skins component.


Version: master
Severity: normal

Attached:

2014-01-31_edit_reply_Agora_buttons.png (131×654 px, 11 KB)

Details

Reference
bz60672

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:59 AM
bzimport set Reference to bz60672.
bzimport added a subscriber: Unknown Object (MLST).

Most or all of this does happen with mw-ui-button in core, so moving to core.

This is actually a Flow issue. The terms of use is taking away space from the icons. The icons should know nothing about each other.

There is nothing wrong with the components itself but in how they are being arranged in their container.

We have mw-ui-button-group, maybe there is a modifier for the Flow use case that you might want to design there and upstream to MediaWiki UI.

http://tools.wmflabs.org/styleguide/desktop/section-2.html#section-2.2

Krinkle unsubscribed.