advanced-css-course icon indicating copy to clipboard operation
advanced-css-course copied to clipboard

The nav links is invisible but are still clickable?

Open loctran016 opened this issue 3 years ago • 3 comments

I've tested this on both Brave and FireFox. I've tried to fix this and it works. May you update the code please, thanks.

My code is here (sass/layout/_navigation.scss)
.navigation {
&__link {
            display: none;
    }

&__checkbox:checked ~ &__nav &__list &__item &__link {
        &:link,
        &:visited {
            display: inline-block;
        }
    }
}

https://user-images.githubusercontent.com/64778285/125754742-0c800d4c-b420-4030-a688-9121b2131299.mp4 2021-07-15 (2) 2021-07-15 (3)

loctran016 avatar Jul 15 '21 08:07 loctran016

New Text Document.txt New Text Document (2).txt copy this code and paste in the navigation.scss

babatunde946 avatar Oct 19 '21 10:10 babatunde946

You don't need to give nav z-index of -1, set pointer events to none on initial state of nav and back to auto when checked.

Suhail-007 avatar Nov 07 '22 05:11 Suhail-007

Try other one to add visibility hidden and visible

creatinnomitul avatar Jun 07 '23 06:06 creatinnomitul