Skip to content

Commit

Permalink
fix(admin-ui): Improve readability of role permissions table
Browse files Browse the repository at this point in the history
Fixes #2224
  • Loading branch information
michaelbromley committed Jun 12, 2023
1 parent 6483aad commit 95dabdc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@
(keydown.space)="$event.preventDefault(); selectedChange.emit(!selected)"
(click)="selectedChange.emit(!selected)"
>
<clr-icon shape="check-circle" [attr.size]="size === 'small' ? 24 : 32"></clr-icon>
<clr-icon
shape="check-circle"
[class.is-solid]="selected"
[attr.size]="size === 'small' ? 24 : 32"
></clr-icon>
</div>
<div class="toggle-label" [class.disabled]="disabled" *ngIf="label" (click)="selectedChange.emit(!selected)">
<div
class="toggle-label"
[class.selected]="selected"
[class.disabled]="disabled"
*ngIf="label"
(click)="selectedChange.emit(!selected)"
>
{{ label }}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
border-radius: 50%;
top: -12px;
left: -12px;
transition: opacity 0.2s, color 0.2s;
transition: opacity 0.1s, color 0.1s;

&.hide-when-off {
opacity: 0;
Expand All @@ -27,23 +27,23 @@
}

&:not(.disabled):hover {
color: var(--color-success-400);
color: var(--color-success-600);
opacity: 0.9;
}

&.selected {
opacity: 1;
color: var(--color-success-500);
color: var(--color-success-700);

&:not(.disabled):hover {
color: var(--color-success-400);
color: var(--color-success-600);
opacity: 0.9;
}
}

&:focus {
outline: none;
box-shadow: 0 0 2px 2px var(--color-primary-500);
box-shadow: 0 0 2px 2px var(--color-primary-700);
}

&.disabled {
Expand All @@ -60,4 +60,8 @@
&:not(.disabled) {
cursor: pointer;
}

&.selected {
color: var(--color-success-800);
}
}

0 comments on commit 95dabdc

Please sign in to comment.