Using class instead of element selector
This commit is contained in:
parent
30032c52b4
commit
8dac9c3a0a
|
@ -12,7 +12,9 @@
|
|||
<a
|
||||
ng-click="switcher.ensureNavigation($event, link)"
|
||||
ng-href="{{ link.active ? link.url : (link.lastSubUrl || link.url) }}"
|
||||
data-test-subj="appLink">
|
||||
data-test-subj="appLink"
|
||||
ng-class="{ 'app-link__anchor': !switcher.isNavLinkEnabled(link) }"
|
||||
>
|
||||
|
||||
<div ng-if="link.icon" class="app-icon"><img kbn-src="{{'/' + link.icon}}"></div>
|
||||
<div ng-if="!link.icon" class="app-icon-missing">{{ link.title[0] }}</div>
|
||||
|
|
|
@ -88,7 +88,7 @@ body { overflow-x: hidden; }
|
|||
&.is-app-switcher-app-link-disabled {
|
||||
opacity: 0.5;
|
||||
|
||||
a {
|
||||
.app-link__anchor {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue