Problem/Motivation

Multiple value composite elements use tables which get cut off on small devices

Proposed resolution

Provide mobile-friendly layout for multiple value composite elements.

Remaining tasks

Provide CSS (copied from Likert element)
Write change record.

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new1.5 KB
jrockowitz’s picture

StatusFileSize
new2.29 KB

Status: Needs review » Needs work

The last submitted patch, 3: 2953816-3.patch, failed testing. View results

jrockowitz’s picture

Status: Needs work » Needs review
StatusFileSize
new3.4 KB

  • jrockowitz committed ec716ae on 8.x-5.x
    Issue #2953816 by jrockowitz: Provide mobile-friendly layout for...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

francescoq’s picture

Sorry to comment in this old issue, but maybe i'm missing something, this old commit completely hide the "add / remove" buttons when in mobile view if I understand correctly, was that the wanted behaviour?
To give my users the possibility to add multiple values of my Custom Composite element, i've to style myself the +/- buttons, not a big problem at all, but i wanted only to ask if i'm missing the point or if that's correct.
Thanks!

jrockowitz’s picture

StatusFileSize
new27.25 KB

Yes, it looked awkward to have the handle and buttons visible.

We could explore allowing the handle and buttons to be toggled on for mobile via the UI.

jrockowitz’s picture

StatusFileSize
new28.16 KB
new688 bytes

The attached patch is a very simple compromise that moves the operations to the top right.

If you like this approach, please create a new ticket and we can probably apply this patch to Webform 6.x.

jrockowitz’s picture

StatusFileSize
new689 bytes

Same solution but using ems instead of pixels.

francescoq’s picture

Wow, I just saw the notifications, faster than light! thanks! I'll try the patch and leave a feedback in the other issue