mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -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({
|
export default Ember.Component.extend({
|
||||||
tagName: "li",
|
tagName: "li",
|
||||||
classNameBindings: ["active", "tabClassName"],
|
classNameBindings: ["tabClassName"],
|
||||||
|
|
||||||
tabClassName: function() {
|
tabClassName: function() {
|
||||||
return "edit-category-" + this.get("tab");
|
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 {
|
> a.active {
|
||||||
color: $secondary;
|
color: $secondary;
|
||||||
background-color: $quaternary;
|
background-color: $quaternary;
|
||||||
|
Loading…
Reference in New Issue
Block a user