React-slick: How to remove the blue border when the slide is selected?

Created on 4 Aug 2018  路  6Comments  路  Source: akiran/react-slick

When you select one slide it gets a blue border. How can I remove that?

Most helpful comment

Write this to your css file

.slick-slide div {
    outline: none;
}

All 6 comments

I wrap an additional div and get the result.

Can you provide some example code? @ReactGirl

Because I wrap mine and it didn't work:

I wrap it like this:

   <Slider {...settings}>
      <div>
         <div>
            <h3>1</h3>
         </div>
       </div>
   </Slider>

I still can see the border when I select the slide.

I was able to solve this by adding a wildcard focus rule to my css:

*:focus {
  outline: 0;
  outline: none;
}

Write this to your css file

.slick-slide div {
    outline: none;
}

I was able to solve this by adding a wildcard focus rule to my css:

*:focus {
  outline: 0;
  outline: none;
}

馃槀 No time

Write this to your css file

.slick-slide div {
    outline: none;
}

This works. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laveesingh picture laveesingh  路  3Comments

PolGuixe picture PolGuixe  路  3Comments

eternalsky picture eternalsky  路  3Comments

Exomnius picture Exomnius  路  3Comments

rohitgoyal7 picture rohitgoyal7  路  3Comments