Giter Club home page Giter Club logo

Comments (5)

einazare avatar einazare commented on May 24, 2024

Hello there, @tomgreeEn ,

The link you have given sends me to open a new issue for the product at hand, please provide me with the link of the page your are having issues.
Also, you could provide me with a small video of the issue happening.

Best,
Manu

from ct-nextjs-material-kit-pro.

tomgreeEn avatar tomgreeEn commented on May 24, 2024

Hi
Apologies - the correct link is here:

https://demos.creative-tim.com/nextjs-material-kit-pro/ecommerce

You shouldn't need a video if you follow the steps provided.

This is also an issue on Safari, where in fact the formating is even more broken.

Tom

from ct-nextjs-material-kit-pro.

einazare avatar einazare commented on May 24, 2024

Hello there, @tomgreeEn ,

I've checked with my colleagues, the only solution is to add disableRipple on the Checkboxes from the e-commerce page, that is what we've done on the HTML counterpart of this product: https://demos.creative-tim.com/material-kit-pro/examples/ecommerce.html
So you have to change the checkboxes from:

<Checkbox
                                  tabIndex={-1}
                                  onClick={() => handleToggle(9)}
                                  checked={
                                    checked.indexOf(9) !== -1 ? true : false
                                  }
                                  checkedIcon={
                                    <Check className={classes.checkedIcon} />
                                  }
                                  icon={
                                    <Check className={classes.uncheckedIcon} />
                                  }
                                  classes={{
                                    checked: classes.checked,
                                    root: classes.checkRoot
                                  }}
                                />

To

<Checkbox
                                  tabIndex={-1}
                                  onClick={() => handleToggle(9)}
                                  disableRipple
                                  checked={
                                    checked.indexOf(9) !== -1 ? true : false
                                  }
                                  checkedIcon={
                                    <Check className={classes.checkedIcon} />
                                  }
                                  icon={
                                    <Check className={classes.uncheckedIcon} />
                                  }
                                  classes={{
                                    checked: classes.checked,
                                    root: classes.checkRoot
                                  }}
                                />

Also, I found another bug, the hover background, that should not happen, for this, go inside assets/jss/nextjs-material-kit-pro/customCheckboxRadioSwitchStyle.js and change:

  checkRoot: {
    padding: "14px",
    "&:hover": {
      backgroundColor: "unset"
    }
  },
  radioRoot: {
    padding: "16px",
    "&:hover": {
      backgroundColor: "unset"
    }
  },

To

  checkRoot: {
    padding: "14px",
    "&:hover": {
      backgroundColor: "unset !important"
    }
  },
  radioRoot: {
    padding: "16px",
    "&:hover": {
      backgroundColor: "unset !important"
    }
  },

Best,
Manu

from ct-nextjs-material-kit-pro.

tomgreeEn avatar tomgreeEn commented on May 24, 2024

from ct-nextjs-material-kit-pro.

einazare avatar einazare commented on May 24, 2024

Hello again, @tomgreeEn ,

I've checked with my colleagues, the only solution is to add disableRipple on the Checkboxes from the e-commerce page, that is what we've done on the HTML counterpart of this product: https://demos.creative-tim.com/material-kit-pro/examples/ecommerce.html
Please check the above link.
That area is far too small to add some more padding to it, the inside UI will be distorted on smaller screens.

We have forgotten to disable the ripple effect on the Checkboxes, that ripple effect should not happen anyway. There is no way to fix this, the only fix is to disable the ripple, at least on the e-commerce page.

Best,
Manu

from ct-nextjs-material-kit-pro.

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.