I'm working with Chakra UI and i needed to customize the scrollbar style using the css pseudo element ::-webkit-scrollbar
, but Chakra UI doesn't seen to have this pseudo element and a I don't know where I can style this specific component without creating a global css class.
Here is a sample of my code:
<Box
overflowX="auto"
maxW="100vw"
h="100%"
whiteSpace="nowrap"
pb="17px"
color="white"
px="32px"
// the ::-webkit-scrollbar property should goes here
>
<!-- content -->
</Box>
::-webkit-scrollbar-thumb:horizontal
, cannot figure out what rules chakra is using internally for pseudo css. – Vaporize