Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Style chakra-ui mobile scrollbar and make always visible

so the styling in the css={{....}} property gets applied in my browser, but not in Safari on my iPhone. How do i add styling for iOs Safari, and also how can i make it, so that the scrollbar doesn't disappear and is always visible?

The only style which seems to get applied on iPhone is the webkit-scrollbar-track witdh. (i tested by setting the width to 100px)

I already tried this and this, in order to make the scrollbar always visible, but with no success. Below is the code and images of the scroll component on iPhone and Google Chrome on my Mac.

I also tried using both sx={{....}} css={{....}} while testing. But no difference.

<MenuList
  variant={"outline"}
  bgColor={"#000000"}
  rounded={10}
  borderColor={"blue.200"}
>
  <Box
    css={{
      "&::-webkit-scrollbar": {
        width: "4px",
      },
      "&::-webkit-scrollbar-track": {
        width: "6px",
      },
      "&::-webkit-scrollbar-thumb": {
        background: "#8ccef0",
        borderRadius: "24px",
      },
    }}
    overflowX="auto"
    maxHeight="200px"
  >
    {coinsList
      .map(({ label, path }) => (
        <MenuItem
          pt={1}
          pb={1}
          key={path}
          as={Link}
          to={path}
          color={dropDownValue === label ? undefined : "blue.200"}
        >
          {label}
        </MenuItem>
      ))}
  </Box>
</MenuList>

Menu in Google Chrome on my Mac. Handlebar always visible and styled(blue color):

Menu in Google Chrome on my Mac. Handlebar always visible and styled(blue color)

Menu in Safari on my iPhone. Handlebar only visible while scrolling and not styled(grey color, thinner, only track-width style gets applied):

[Menu in Safari on my iPhone. Handlebar visible while scrolling and not styled(grey color, thinner

[EDIT] While looking on the images after posting the question i noticed, that the whole menu is grey on mobile image. This is due to sending the image to my Mac using Telegram. It is actually the same blue color as the Chrome image, except for handlebar (just for clarification.)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!