Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previous/Next buttons are broken and trying to replace those ones. #116

Open
iyamus opened this issue May 11, 2021 · 1 comment
Open

Previous/Next buttons are broken and trying to replace those ones. #116

iyamus opened this issue May 11, 2021 · 1 comment

Comments

@iyamus
Copy link

iyamus commented May 11, 2021

I found previous/next buttons are broken due to the link in the demo, so I tried to replace those buttons from the images located in "public" directory in my development env. However, when I tried to like the below, it occurs an error.

.previousButton,
.nextButton {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: url("%PUBLIC_URL%/assets/icons/arrow_back.svg") no-repeat center center /
/*   background: url("/public/assets/icons/arrow_back.svg") no-repeat center center /  not working as well  */
    16px;
  width: 32px;
  height: 32px;
  text-indent: -9999px;
  cursor: pointer;
}

.previousButton:hover,
.nextButton:hover {
  background: url("%PUBLIC_URL%/assets/icons/arrow_back.svg") no-repeat center center /
    16px;
}

Could you let me know how to deal with this?

2021-05-11 08_54_54-React Animated Slider - fully animated - CodeSandbox

@shareef-dweikat
Copy link

@iyamus did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants