fix active class, remove style

This commit is contained in:
Kris 2019-03-06 17:29:19 -05:00
parent 536952f194
commit a917a93990
3 changed files with 3 additions and 4 deletions
app/assets
javascripts/discourse
components
templates/components
stylesheets/common/components

View File

@ -2,7 +2,7 @@ import { propertyEqual } from "discourse/lib/computed";
export default Ember.Component.extend({
tagName: "li",
classNameBindings: ["tabClassName"],
classNameBindings: ["active", "tabClassName"],
tabClassName: function() {
return "edit-category-" + this.get("tab");

View File

@ -1 +1 @@
<a href {{action "select"}} class="{{if active 'active'}}">{{title}}</a>
<a href {{action "select"}}>{{title}}</a>

View File

@ -48,8 +48,7 @@
}
}
&.active > a,
> a.active {
&.active > a{
color: $secondary;
background-color: $quaternary;