fix active class, remove style
This commit is contained in:
parent
536952f194
commit
a917a93990
|
@ -2,7 +2,7 @@ import { propertyEqual } from "discourse/lib/computed";
|
||||||
|
|
||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
tagName: "li",
|
tagName: "li",
|
||||||
classNameBindings: ["tabClassName"],
|
classNameBindings: ["active", "tabClassName"],
|
||||||
|
|
||||||
tabClassName: function() {
|
tabClassName: function() {
|
||||||
return "edit-category-" + this.get("tab");
|
return "edit-category-" + this.get("tab");
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<a href {{action "select"}} class="{{if active 'active'}}">{{title}}</a>
|
<a href {{action "select"}}>{{title}}</a>
|
||||||
|
|
|
@ -48,8 +48,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active > a,
|
&.active > a{
|
||||||
> a.active {
|
|
||||||
color: $secondary;
|
color: $secondary;
|
||||||
background-color: $quaternary;
|
background-color: $quaternary;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue