Skip to content

Commit

Permalink
fix: bring back units address active state styling (#9394)
Browse files Browse the repository at this point in the history
Closes: #9213
  • Loading branch information
Patryk Smul committed Oct 19, 2020
1 parent e8b180e commit 5fb02cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { OrganizationCellComponent } from '../../../../shared/organization-table
<a
*ngIf="unitKey$ | async as uid"
[routerLink]="{ cxRoute: route, params: getRouterModel(uid) } | cxUrl"
routerLinkActive="is-current"
[tabIndex]="tabIndex"
>
<span class="text">{{ property }}</span>
Expand Down
15 changes: 12 additions & 3 deletions feature-libs/organization/administration/styles/_list.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@mixin is-current-active-selection {
outline: solid 3px var(--cx-color-primary);
outline-offset: -3px;
background: var(--cx-color-background-focus);
}

%ghost {
&.ghost {
.header {
Expand Down Expand Up @@ -280,6 +286,11 @@
padding-inline-start: 5px;
}
}
a {
&.is-current {
@include is-current-active-selection;
}
}
}
th:last-child,
td:last-child {
Expand All @@ -300,9 +311,7 @@
}
// highlight current items
&.is-current {
outline: solid 3px var(--cx-color-primary);
outline-offset: -3px;
background: var(--cx-color-background-focus);
@include is-current-active-selection;
}

&:focus-within {
Expand Down

0 comments on commit 5fb02cb

Please sign in to comment.