My Bootstrap navigation has a unique setup, as shown below.
I've observed that many users tend to only interact with the headings and ignore the submenus where the actual products are located.
To address this issue, I want to change the design of the submenu links by creating an arrow-shaped orange background to visually guide users through the navigation. Something similar to these examples:
https://i.sstatic.net/nCa36.png
https://i.sstatic.net/gkci2.png
Although I attempted using CSS shapes and borders from resources like this article, I couldn't achieve the desired effect.
.navbar .dropdown-menu{
background-color:#eee;
}
.navbar .dropdown-submenu{
display:none;
background-color:#ddd;
position:absolute;
top:0px;
left:100%;
}
.navbar .dropdown-submenu .dropdown-item > a{
display:block;
}
.navbar .dropdown-menu > .dropdown-item > a{
display:block;
}
.navbar .dropdown-item:hover .dropdown-submenu{
display:block;
}
.navbar .dropdown-menu > .dropdown-item:focus, .navbar .dropdown-menu > .dropdown-item:hover {
background-color:#F8981D;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<nav class="navbar navbar-expand-md">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<img src="media/icons/menu.png" alt="Lifting365 Menu" class="icon">
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item text-center dropdown">
<a class="nav-link nav dropdown-toggle products-dropdown" href="#" data-toggle="dropdown" aria-expanded="true">Products</a>
<ul class="dropdown-menu">
<li class="dropdown-item d-block">
<a class="submenu-item" href="store#1">Heading1›</a>
<ul class="dropdown-submenu">
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
</ul>
</li>
<li class="dropdown-item d-block">
<a class="submenu-item" href="store#2">Heading2›</a>
<ul class="dropdown-submenu">
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
</ul>
</li>
<li class="dropdown-item d-block">
<a class="submenu-item" href="store#3">Heading3›</a>
<ul class="dropdown-submenu">
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
</ul>
</li>
</ul>
</li>
<li class="nav-item text-center"><a class="nav-link nav" href="blog">Blog</a></li>
<li class="nav-item text-center"><a class="nav-link nav" href="about">About</a></li>
<li class="nav-item text-center"><a class="nav-link nav" href="contact">Contact</a></li>
</ul>
</div>
</nav>
Edit
.navbar .dropdown-menu{
background-color:#eee;
}
.navbar .dropdown-submenu{
display:none;
background-color:#ddd;
position:absolute;
top:0px;
left:100%;
}
.navbar .dropdown-submenu .dropdown-item > a{
display:block;
}
.navbar .dropdown-menu > .dropdown-item > a{
display:block;
}
.navbar .dropdown-item:hover .dropdown-submenu{
display:block;
}
.navbar .dropdown-menu > .dropdown-item:focus, .navbar .dropdown-menu > .dropdown-item:hover {
background-color:orange;
}
.navbar .dropdown-menu > .dropdown-item{
width: 200px;
height: 40px;
position: relative;
}
.navbar .dropdown-menu > .dropdown-item:hover:before{
content: "";
position: absolute;
right: -20px;
bottom: 0;
width: 0;
height: 0;
border-left: 20px solid orange;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
z-index:9999;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<nav class="navbar navbar-expand-md">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<img src="media/icons/menu.png" alt="Lifting365 Menu" class="icon">
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item text-center dropdown">
<a class="nav-link nav dropdown-toggle products-dropdown" href="#" data-toggle="dropdown" aria-expanded="true">Products</a>
<ul class="dropdown-menu">
<li class="dropdown-item d-block">
<a class="submenu-item" href="store#1">Heading1›</a>
<ul class="dropdown-submenu">
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
</ul>
</li>
<li class="dropdown-item d-block">
<a class="submenu-item" href="store#2">Heading2›</a>
<ul class="dropdown-submenu">
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
</ul>
</li>
<li class="dropdown-item d-block">
<a class="submenu-item" href="store#3">Heading3›</a>
<ul class="dropdown-submenu">
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
<li class="dropdown-item d-block"><a href="#">Product</a></li>
</ul>
</li>
</ul>
</li>
<li class="nav-item text-center"><a class="nav-link nav" href="blog">Blog</a></li>
<li class="nav-item text-center"><a class="nav-link nav" href="about">About</a></li>
<li class="nav-item text-center"><a class="nav-link nav" href="contact">Contact</a></li>
</ul>
</div>
</nav>