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

Property To Hide Scrollbar #148

Open
zac-ng opened this issue Jul 21, 2023 · 3 comments
Open

Property To Hide Scrollbar #148

zac-ng opened this issue Jul 21, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@zac-ng
Copy link

zac-ng commented Jul 21, 2023

The scrollbar seems to be hidden on just Chrome, but is visible on Firefox. Is there a way to style the scrollbar?

@kevinfarrugia
Copy link
Owner

kevinfarrugia commented Jul 21, 2023

Hi @zac-ng . There is no property to hide scrollbars but it should easily be done through CSS.

For example:

/* Hide scrollbar for Chrome, Safari and Opera */
.glider-track::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.glider-track {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

@zac-ng
Copy link
Author

zac-ng commented Jul 22, 2023

When rendering the component on Chrome, it seems like the glider is hidden by default, but not on firefox. I'm not sure if that is intentional, or an issue on my end.

@kevinfarrugia
Copy link
Owner

Will take a look and perhaps update the default CSS. Would be happy to review a PR if you would be interested in creating one.

@kevinfarrugia kevinfarrugia added the good first issue Good for newcomers label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants