Target active nav pill with single style

This commit is contained in:
Kris 2019-03-07 13:21:42 -05:00
parent da64b90d4f
commit 837452794b
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,8 @@ export default Ember.Component.extend(
this.set("hidden", false);
}
buffer.push(`<a href='${href}'>`);
buffer.push(`<a href='${href}'` + (this.get("active") ? 'class="active"' : '') + `>`);
if (content.get("hasIcon")) {
buffer.push("<span class='" + content.get("name") + "'></span>");
}

View File

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

View File

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