Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scrollbars had no style in the library, so every product shows the system ones, and NethVoice CTI styles them with
tailwind-scrollbarclasses repeated on each scrolling element.The theme now styles every scrollbar, with no class to add: a thin scrollbar with a
gray-400thumb and agray-200track (gray-900in the dark theme), the same colors that NethVoice CTI uses.::-webkit-scrollbar(8px, rounded thumb).scrollbar-width: thinandscrollbar-color, only inside@supports (-moz-appearance: none): since Chrome 121, an element withscrollbar-widthorscrollbar-colorignores::-webkit-scrollbar.htmlhas no background.@layer baseand use:where(), so a product overrides them with any class, such as[scrollbar-width:none]to hide a scrollbar.This changes the look of every product that imports the theme.
Tested
In the playground, in the light and the dark theme: a vertical list, a table that scrolls in both directions, the
NeComboboxdropdown, a textarea, the page scrollbars, and a box that hides its scrollbar. Every pixel of each scrollbar was compared with the token colors:Not tested: Safari on macOS, Windows, Android, forced colors mode.
npm run lint,npm run format,npm run buildandnpm run build-storybookpass.