react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Arrows and dots are not showing properly

Open yidongw opened this issue 8 years ago • 2 comments

Following the guide on https://github.com/akiran/react-slick

npm install react-slick --save
npm install slick-carousel
@import "~slick-carousel/slick/slick.css";
@import "~slick-carousel/slick/slick-theme.css";
import React from "react";
import Slider from "react-slick";

class SimpleSlider extends React.Component {
  render() {
    var settings = {
      dots: true,
      infinite: true,
      speed: 500,
      slidesToShow: 1,
      slidesToScroll: 1
    };
    return (
      <Slider {...settings}>
        <div>
          <h3>1</h3>
        </div>
        <div>
          <h3>2</h3>
        </div>
        <div>
          <h3>3</h3>
        </div>
        <div>
          <h3>4</h3>
        </div>
        <div>
          <h3>5</h3>
        </div>
        <div>
          <h3>6</h3>
        </div>
      </Slider>
    );
  }
}

I'm expected to see image But instead, I see image

The arrow is unicode character, not the arrow you provided. The dots are smaller, which are also unicode character. The color on the slides are background color, not from Slick.

What am I missing here?

yidongw avatar Sep 14 '18 20:09 yidongw

I think this should work:

import React from "react";
import Slider from "react-slick";
/* add the lines below */
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';

If you're using your custom arrow component and want to use the same arrow as the lib, you should use this: font-family: 'slick';.

augustolima avatar Nov 22 '18 19:11 augustolima

same problem :(

robertoaikode avatar Nov 30 '18 16:11 robertoaikode