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.

Please consider making "overflow: hidden;" style opt-in

See original GitHub issue

Currently the overflow: hidden style is hard-coded into the React component returned by useEmblaCarousel().

It would be great if this style could be documented as a recommended style in the CSS section of the installation instructions instead of being forced on the component. I’m currently working on a project where I want the inactive slides to be visible outside the container and this style is preventing this.

Happy to submit a PR if this is something you would consider accepting!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
samhastingscommented, Sep 10, 2020

Hi David, sorry that it’s taken me so long to get a chance to try this. The project was put on hold for a couple of weeks while I worked on other stuff. Pleased to say this is working perfectly. Thanks for taking the time to implement my request. I really appreciate it.

3reactions
davidjerlekecommented, Oct 31, 2020

Hello @samhastings, I understand, we can all be busy sometimes. Thanks a lot for taking the time to confirm that it’s working as expected. Enjoy 🙂.

Best, David

Read more comments on GitHub >

github_iconTop Results From Across the Web

Please consider making "overflow: hidden;" style opt-in #94
Currently the overflow: hidden style is hard-coded into the React component returned by useEmblaCarousel(). It would be great if this style ...
Read more >
Position absolute and overflow hidden
Is there any chance to make the inner DIV obey the overflow hidden of the outer DIV without setting the outer DIV to...
Read more >
overflow - CSS: Cascading Style Sheets - MDN Web Docs
Similar to hidden , the content is clipped to the element's padding box. The difference between clip and hidden is that the clip...
Read more >
Overflow In CSS - Ahmad Shadeed
Possible Keywords For Overflow. The overflow property can accept the following possible values: visible, hidden, scroll, auto .
Read more >
How to prevent overflow scrolling in CSS - LogRocket Blog
This article will discuss what an overflow scroll in CSS is, explain what causes this issue, and suggest ways to fix the problem,...
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