Hi everyone,
I have a question regarding Side Navigation items and how it’s properties can be set with css when one is selected.
I already have in java
navItemFeed.setClassName("left-menu");
and in css
.left-menu{
background-color:#e9c46a;
transition-duration: 0.4s;
}
.left-menu:hover{
color:#73aff5;
transition-duration: 0.4s;
}
how can I set the selected state properties?
I tried
.left-menu::selection
but no desired outcome
I also tried
.left-menu:focus
but after leaving browser, the formatting was lost.
I guess the keyword is not ‘selection’ or something similar.
Any ideas?