mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
UX: More consistent structure for active nav-pill
This commit is contained in:
parent
941e096df4
commit
078c02cd24
@ -2,7 +2,7 @@ import { propertyEqual } from "discourse/lib/computed";
|
||||
|
||||
export default Ember.Component.extend({
|
||||
tagName: "li",
|
||||
classNameBindings: ["active", "tabClassName"],
|
||||
classNameBindings: ["tabClassName"],
|
||||
|
||||
tabClassName: function() {
|
||||
return "edit-category-" + this.get("tab");
|
||||
|
@ -1 +1 @@
|
||||
<a href {{action "select"}}>{{title}}</a>
|
||||
<a href {{action "select"}} class="{{if active 'active'}}">{{title}}</a>
|
||||
|
@ -48,7 +48,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.active > a,
|
||||
> a.active {
|
||||
color: $secondary;
|
||||
background-color: $quaternary;
|
||||
|
Loading…
Reference in New Issue
Block a user