When the Dropdown menu is open, I would like to customize its default colors. Specifically, I want to change the border color and background using CSS.
https://i.sstatic.net/vKwLE.png
Below is the HTML code snippet:
<div class="row menu">
<ul class="nav nav-pills pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle"
data-toggle="dropdown">
My reports
<span class="caret my-reports-caret"></span>
</a>
<ul class="dropdown-menu">
<li><%= link_to "Performance", performance_reports_path %></li>
<li class="divider"></li>
<li><%= link_to "Account settings", '#' %></li>
</ul>
</li>
</ul>
</div>
This is the CSS code I attempted:
.menu .nav-pills .dropdown .open .dropdown-toggle{
background-color: red;
}
Can someone help me identify what's wrong with my selectors?