GithubHelp home page GithubHelp logo

overflow-x on MazCarousel about maz-ui HOT 2 CLOSED

Timothy16 avatar Timothy16 commented on June 2, 2024
overflow-x on MazCarousel

from maz-ui.

Comments (2)

Timothy16 avatar Timothy16 commented on June 2, 2024 1

Thank you @LouisMazel this worked for me.

from maz-ui.

LouisMazel avatar LouisMazel commented on June 2, 2024

Hey @Timothy16,

If you do that, the user can no longer scroll in carousel on mobile or with the trackpad on desktop. He could just use the arrows and it's a big limitation and a bad UX.

If you want just hide the scrollbar (I don't want do it myself in the component for the accessibility and the UX), you can use something like that:

<template>
  <MazCarousel class="carousel" images="[]" />
</template>
 
<style scoped>
  .carousel >>> .m-carousel__items::-webkit-scrollbar {
    display: none;
  }
</style>

You can use the :deep() selector instead of >>>

from maz-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.