title: Changing the color of active nav-item
body: <p>I have a <code>navbar</code> designed in Bootstrap. I am trying to make it a different color when the class of the <code>nav-item</code> is set to <code>active</code>.</p>
  
  <p>However I am not able to do so. When I set the <code>background</code> the background color is changing, but when I use <code>color</code> the color is not changing. Note that I'm using Bootstrap v4.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    "use strict";
  
    $('ul.navbar-nav &gt; li').click(function(e) {
      e.preventDefault();
      $('ul.navbar-nav &gt; li').removeClass('active');
      $(this).addClass('active');
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.navbar-toggler:focus {
    outline: 0;
  }
  .navbar-nav &gt; .active {
    color: aqua!important;  **// THIS DOES NOT WORK**
    background-color: chartreuse; **//THIS WORKS**
  }
  .nav-item &gt; a:hover {
    color: aqua!important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;nav class="navbar navbar-light animated fadeInLeft" style="background-color: #C0C0C0 ;"&gt;
    &lt;button class="navbar-toggler navbar-toggler-left" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="#navbarNav" aria-expanded="false" aria-label="Toggle navigation"&gt;&lt;span class="lines"&gt;&lt;/span&gt;&lt;span class="lines"&gt;&lt;/span&gt;&lt;span class="lines"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;h1 class="navbar-brand mb-0 move-header "&gt;NavBrand&lt;/h1&gt;
    &lt;div class="collapse animated fadeInLeft" id="navbarNav"&gt;
      &lt;ul class="navbar-nav"&gt;
        &lt;li class="nav-item active"&gt;
          &lt;a class="nav-link" href="#"&gt;Home &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#"&gt;Features&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#"&gt;Pricing&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link disabled" href="#"&gt;Disabled&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>