Currently, I am utilizing SCSS to create a dropdown menu. Below is a snippet of the functionality:
li {
font: bold 12px/18px sans-serif;
display: inline-block;
margin-right: -4px;
position: relative;
padding: 15px 20px;
background: $menuBG;
color: $menuColor;
cursor: pointer;
transition: all 0.2s;
&:hover {
background: $hoverBG;
color: $hoverColor;
}
My goal is to maintain this behavior while ensuring accessibility for non-mouse users such as those with accessibility tools and mobile devices. While jQuery could be utilized, it is not the preferred solution.