question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rounded class does not display on chrome

See original GitHub issue

Hi,

I try to use the scrollbar-thumb-rounded-full class with my React Next application.

However it doesn’t render rounded on chrome as expected. As you can see :

image

Here is my code :

<div className="relative z-10 w-64 bg-white h-full overflow-y-auto scrollbar-thin scrollbar-thumb-gray-500 scrollbar-thumb-rounded-full">
            <Menu>
              <div className="flex flex-col">
                <div className="flex px-8 ">
                  <Menu.Button className="pl-2 my-2 w-10 rounded-full active:bg-gray-200 focus:outline-none">
                    <div onClick={() => setIsOpen(false)}>
                      <Hamburger />
                    </div>
                  </Menu.Button>
                  <Menu.Button className="px-8 focus:outline-none">
                    <Logo />
                  </Menu.Button>
                </div>
                <div className=" py-4 font-normal text-gray-500 flex-1">
                  <Menu.Items className="pl-2 pr-4 divide-y focus:outline-none" static>
                    {props.items.map(item => {

                      return (
                        <div key={item.title}>
                          <div className="pt-4 px-6 text-xs text-gray-400 uppercase">{item.title}</div>
                          <Menu.Item>
                            <MyLink href={item.href} className="rounded font-medium inline-flex items-center px-6 py-4 transition duration-200 w-full hover:bg-gray-200" onClick={() => setIsOpen(false)}>
                            {React.createElement(item.icon, {
                              /** A Technique to style current page item */
                              className: `scale-150 ${router.pathname === item.href ? "text-gray-500" : "text-gray-500"}`,
                            })}
                              <span className="px-4">{item.text}</span>
                            </MyLink>
                          </Menu.Item>
                        </div>
                      )
                    }
                    )}
                  </Menu.Items>
                </div>
              </div>
            </Menu>
          </div>

Why I don’t see the rounded effect ?

Thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
leonnicklascommented, Mar 17, 2022

As a workaround:

Install this PR (by @JCayabyab) via npm until it get’s merged officially…

npm install adoxography/tailwind-scrollbar#pull/36/head
2reactions
shishirravencommented, Apr 25, 2022

work around by leonnicklas works great! thanksbitmoji

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome - containing div has rounded corners in CSS, but not ...
On my site I'm working on, http://urlme.cc/movies6, if you view it in Chrome, each movie div has the class "rounded", but, the div...
Read more >
Fix Chrome Border Radius - WP-Mix
This post shares a quick code snippet that fixes the Chrome browser's new “rounded corners” style that now is applied to form elements...
Read more >
Handling common HTML and CSS problems - MDN Web Docs
Note: HTML errors don't tend to show up so easily in dev tools, ... A red pill button with rounded corners, inset shadow,...
Read more >
Bar Charts | Google Developers
A stacked bar chart is a bar chart that places related values atop one another. If there are any negative values, they are...
Read more >
How to Make Rounded Corners Hide the Overflow in Opera ...
Earlier there was a bug causing a problem when there was a need to make rounded corners hide the overflow in Chrome and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found