Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QSelect - UX improvement on mobile #6858

Open
nicholaszuccarelli opened this issue Apr 21, 2020 · 7 comments
Open

QSelect - UX improvement on mobile #6858

nicholaszuccarelli opened this issue Apr 21, 2020 · 7 comments

Comments

@nicholaszuccarelli
Copy link

nicholaszuccarelli commented Apr 21, 2020

I'd like to suggest a small UX improvement on mobile devices when using a QSelect.

Would it be possible to add a X (close button) at the top left, or the option of a slot to append a button (etc) in dialog mode?

For example, in this screenshot, it is not super obvious that you must click on the outside edges to close the dialog (and the user base for our app is 40+ years old, so it is not blatantly obvious to them that they need to tap outside the box to close it)

(Keep in mind that this is on a regular iPhone 6 (4.7") so the edges are pretty small too)

IMG_0003

@nicholaszuccarelli
Copy link
Author

As a quick mockup of this request:

Essentially (in my case), overriding the prepend slot with a X button which closes the dialog.

image

pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 4, 2021
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 4, 2021
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 4, 2021
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 9, 2021
@Drabuna
Copy link

Drabuna commented Dec 28, 2022

Would be great to have this!

pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jan 5, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jan 8, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jan 10, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jan 11, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jan 15, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jan 16, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jan 19, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Feb 7, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Feb 15, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 1, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 2, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 9, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 17, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 17, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 17, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 21, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 21, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 31, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Apr 4, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Apr 27, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue May 4, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue May 5, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue May 12, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 4, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 8, 2023
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Oct 21, 2023
@brunaoalberto
Copy link

Has the solution been implemented?
If yes, how to use it? I didn't find it in the documentation

@darkopetreski
Copy link

I am using the following to achive the functionality:

  1. Append close button as a slot
    <template v-if="$q.platform.is.mobile" v-slot:append>
      <q-btn outline rounded size="xs" v-close-popup class="close-select-dialog">Close</q-btn>
    </template>
  1. Add some css to show the close button only when the select is shown as dialog. (Other ideas maybe using v-if ?)
.close-select-dialog {
  display: none;
}
.q-select__dialog .close-select-dialog {
  display: block;
}

select

close-dialog

@BrunoSistemaImagem
Copy link

I had implemented it as follows:

      <template v-if="iconClose" v-slot:prepend>
        <div class="mobile-only">
          <q-btn color="primary" icon="mdi-close" flat v-close-popup size="15px" />
        </div>
      </template>

iconClose is changed to true only when clicked to open the qselect options

However, the way you did it seems more correct to me...

I will implement it in the same way. Thanks a lot for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants