Fix "active" button styling

Futureproofing. This is a fix for #7977.