ngx-slick-carousel icon indicating copy to clipboard operation
ngx-slick-carousel copied to clipboard

strange border shows on item click

Open anelad opened this issue 5 years ago • 2 comments

All the items when clicked gets a strange thing like border, and when you click anywhere it goes. I thought somehow it's getting 'user selection' like text selection / highlighting. Added the required attributes without luck.

The problem also exists in http://kenwheeler.github.io/slick/

Here are screenshots: Screen Shot 2019-09-08 at 21 01 22 Screen Shot 2019-09-08 at 21 03 03

anelad avatar Sep 08 '19 18:09 anelad

That outline is caused by the slide being active. Just add a class to remove the outline on focus of the slide.

.slick-slide:focus { outline: none; }

Hsuanyinwu avatar May 18 '20 08:05 Hsuanyinwu

That is the default value in browser to outline, that's mozilla's, in chrome is orange, so... I fix the issue for all my components with

*{
outline:none
}

Note: make sure to put it on top of the style so if you have another outline style this gets overrided

sgClaudia98 avatar Sep 28 '20 01:09 sgClaudia98