uploadcare / uploadcare-widget

Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
https://uploadcare.com/products/file_uploader/
BSD 2-Clause "Simplified" License
227 stars 102 forks source link

Camera tab is hidden on mobile layout #795

Closed kabukki closed 3 years ago

kabukki commented 4 years ago

Summary

On mobile devices, tabs are collapsed and only a few are displayed, along with a "..." button, as seen in this screenshot:

image

Users struggle finding the "camera" tab, which is actually hidden in the dropdown accessed by the aforementioned "..." button:

image

I was wondering whether this behaviour was normal and if not, what could be done to improve the accessibility of the camera tab, possibly displaying it along with the other providers.

Relevant information

Removing providers does not make the camera tab appear outside of the "..." menu, it is always hidden and needs 1 click to be accessible, making users think the option does not exist at first glance.

Environment (if relevant)

Thank you!

optlsnd commented 3 years ago

Hi @kabukki, sorry for the radio silence! Unfortunately, there's no way to change the order of source icons in mobile view, but as a workaround, you can change the default order of tabs so that the camera tab comes first, and in this case, it will appear once a user has clicked the widget button. The order can be changed via the data-tabs option:

<input type="hidden" role="uploadcare-uploader" name="my_file" id="uploadcare-file" data-tabs="camera file facebook gdrive instagram box vk"/>

kabukki commented 3 years ago

Thanks, I've managed to use the camera source first, but I feel like the "back" or "menu" button is hidden behind the camera logo (the same behaviour happens with other sources), at first I thought I could not use another source 🤔 could it be fixed ?

image

kabukki commented 3 years ago

Any update on this menu issue ? Our users cannot find other ways to upload their files now... 😅

optlsnd commented 3 years ago

@kabukki I apologize for the delayed response! Normally, the icon should be displayed in the top-left corner of the dialog image Did you add any custom CSS to style the uploader? If so, make sure there are no CSS rules that may affect the layout of the dialog window. If it's not the case, will you be able to share a link to the page with your uploader installation so that I can check it live?

kabukki commented 3 years ago

Hi ! There is no custom CSS that should impact the uploadcare component, and we are using the panel instead of the dialog, so maybe the behaviour is different ? Otherwise I'm thinking our widget is not up-to-date, but the changelog does not reveal anything major related to this issue.

Here is a link so you can see it live: https://debug.teester.com/casting/upload (you need to log in first, if you get a 404 on desktop, simply reload with mobile mode because the routes are different). The problem only happens in mobile view and when the viewport width is <= 759px.

optlsnd commented 3 years ago

Thank you! It looks like this CSS affects the layout. If it's removed, the hamburger menu icon is displayed properly at the top-left corner.

image

kabukki commented 3 years ago

Woah, this was quite hard to spot ! Thank you a lot for the quick and efficient response 😄