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 scrollbar not styled #17360

Open
meatfighter opened this issue Jul 9, 2024 · 5 comments
Open

QSelect scrollbar not styled #17360

meatfighter opened this issue Jul 9, 2024 · 5 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@meatfighter
Copy link

What happened?

If the dropdown of a QSelect is too tall for its container, a scrollbar appears. But the scrollbar is not styled. It looks generic.

https://codepen.io/Michael-Birken/pen/RwzwXxv?editors=101

image

What did you expect to happen?

The QSelect menu scrollbar should look like it does in the Quasar Framework docs:

https://quasar.dev/vue-components/select

image

Reproduction URL

https://codepen.io/Michael-Birken/pen/RwzwXxv?editors=101

How to reproduce?

  1. Go to https://codepen.io/Michael-Birken/pen/RwzwXxv?editors=101
  2. Narrow the height of the browser to force the QSelect menu to manifest a scrollbar.
  3. Observe the scrollbar's sytle.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Firefox, Chrome, Microsoft Edge

Quasar info output

No response

Relevant log output

No response

Additional context

The same thing happens to a QDialog if it is too tall. A scrollbar appears on its right. But that scrollbar is not properly styled either.

https://codepen.io/Michael-Birken/pen/GRbRVQL?editors=101

image

@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Jul 9, 2024
@RamonDonadeu
Copy link

That is because the quasar docs have styled the scrollbar.

https://codepen.io/Michael-Birken/pen/RwzwXxv

@meatfighter
Copy link
Author

meatfighter commented Jul 16, 2024

That is because the quasar docs have styled the scrollbar.

https://codepen.io/Michael-Birken/pen/RwzwXxv

Why doesn't Quasar do that? How did the docs style it? Can I add that to my Quasar project in a way that works across browsers?

@RamonDonadeu
Copy link

https://www.w3schools.com/howto/howto_css_custom_scrollbar.asp

Check this webpage for Chrome, Edge, Safari and Opera.
For firefox it changes but you can find it easy probably

@RamonDonadeu
Copy link

Oops i just realized that i didn't paste my codepen

https://codepen.io/RamonDonadeu/pen/GRbpQMa

That is because the quasar docs have styled the scrollbar.

https://codepen.io/Michael-Birken/pen/RwzwXxv

@meatfighter
Copy link
Author

Oops i just realized that i didn't paste my codepen

https://codepen.io/RamonDonadeu/pen/GRbpQMa

That is because the quasar docs have styled the scrollbar.
https://codepen.io/Michael-Birken/pen/RwzwXxv

Thanks for suggestions. But I don't think that works across browsers, particularly Firefox. More importantly, Quasar should do this out of the box, which is why I filed this bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants