title: Disabling alternating background color in gridview rows yii2
body: <p>I was able to modify the row color of gridview but I think there is a default property that handles alternating row color because what I indicated on my style is red but when it was displayed the even rows are in red while the alternate row is white. The white colored row should be green. I think this was made by yii for some readability purposes.</p>
  
  <p>Weird thing though is that, the font color is followed based on the class I provided.</p>
  
  <pre><code>&lt;style&gt;
  .stateCritical:nth-child(even) {
      color: black;
      background-color: red;
  }
  
  .stateCritical:nth-child(odd) {
      color: blue;
      background-color: green;
  }
  
  .stateOk {
      color: black;
      background-color: #C0FFBE;
  }
  &lt;/style&gt;
  
  &lt;?= GridView::widget([
                  'dataProvider' =&gt; $dataProvider,
                  'rowOptions' =&gt; function($model) {
                      if ($model-&gt;last_hard_state == 2){
                          return ['class' =&gt; 'stateCritical'];
                      }
                      return ['class' =&gt; 'stateOk'];    
                  },
      .
      .
      .
      .
      .
  ?&gt;
  </code></pre>
  
  <p>How can I override the default background color?</p>