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

Refactor: Tooltip CSS #67

Open
1 of 2 tasks
baruchiro opened this issue May 2, 2023 · 4 comments
Open
1 of 2 tasks

Refactor: Tooltip CSS #67

baruchiro opened this issue May 2, 2023 · 4 comments
Labels

Comments

@baruchiro
Copy link
Collaborator

baruchiro commented May 2, 2023

@baruchiro baruchiro added good first issue Good for newcomers UI labels May 2, 2023
@ETtestim
Copy link
Contributor

ETtestim commented May 3, 2023

@baruchiro can you elaborate what is customizing the scrollbars?
Why move the CSS to global is it going to be used in another component?

@baruchiro
Copy link
Collaborator Author

@jossef

@Darkmift
Copy link

Darkmift commented May 4, 2023

Please bear in mind regarding scrollbar customizations:

Customizing scrollbars is possible using CSS, but the level of support and the way it is implemented can vary between browsers. Some browser-specific pseudo-elements and pseudo-classes can be used to style scrollbars.

Here's a brief overview of the scrollbar customization support in major browsers:

Google Chrome, Microsoft Edge (Chromium-based), and Opera:
These browsers support the customization of scrollbars using the non-standard ::-webkit-scrollbar set of pseudo-elements. You can use the following pseudo-elements to style different parts of the scrollbar:
::-webkit-scrollbar
::-webkit-scrollbar-button
::-webkit-scrollbar-track
::-webkit-scrollbar-track-piece
::-webkit-scrollbar-thumb
::-webkit-scrollbar-corner
::-webkit-resizer
Firefox:
Starting from version 64, Firefox supports the standard scrollbar-width and scrollbar-color CSS properties. However, it doesn't support the more granular WebKit-based pseudo-elements used by Chrome, Edge, and Opera. You can style the scrollbar using the following properties:
scrollbar-width: It accepts values like 'auto', 'thin', and 'none'.
scrollbar-color: It takes two color values, one for the thumb and another for the track.
Safari:
Safari also supports the non-standard ::-webkit-scrollbar set of pseudo-elements, just like Chrome, Edge, and Opera. However, support for the standard scrollbar-width and scrollbar-color properties is limited.

Internet Explorer:
Internet Explorer doesn't support the customization of scrollbars using the standard scrollbar-width and scrollbar-color properties. It has its own proprietary scrollbar styling properties, but it's important to note that Internet Explorer is now considered outdated, and Microsoft Edge is the recommended browser.

Keep in mind that because scrollbar customization relies on non-standard properties and varies across browsers, it's important to ensure your website or application remains usable even if custom scrollbars aren't fully supported. This may involve testing your design in multiple browsers and providing fallback styles if necessary.

@ETtestim
Copy link
Contributor

ETtestim commented May 4, 2023

At least give credit to Chatgpt.

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

No branches or pull requests

3 participants