Skip to content

Commit b91db01

Browse files
authored
refactor: update label detail style (#708)
1 parent 008c492 commit b91db01

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

projects/observability/src/shared/components/label-detail/label-detail.component.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@
77
cursor: pointer;
88

99
.icon {
10-
width: 32px;
11-
height: 32px;
10+
margin-left: 6px;
1211
border-radius: 50%;
12+
width: 20px;
13+
height: 20px;
1314
display: flex;
1415
align-items: center;
1516
justify-content: center;
1617
cursor: pointer;
18+
background: $gray-1;
19+
color: $gray-5;
1720
}
1821

1922
.label-icon {
20-
background: $blue-1;
21-
color: $blue-4;
22-
}
23-
24-
.expand {
25-
background: $gray-1;
23+
&:hover {
24+
color: $gray-7;
25+
}
2626
}
2727

2828
.label {

projects/observability/src/shared/components/label-detail/label-detail.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ import {
2525
<ht-popover-trigger>
2626
<div
2727
class="label-detail-trigger"
28-
(mouseenter)="this.showdetailButton = true"
29-
(mouseleave)="this.showdetailButton = false"
28+
(mouseenter)="this.showDetailButton = true"
29+
(mouseleave)="this.showDetailButton = false"
3030
>
3131
<ht-button
32-
*ngIf="this.showdetailButton"
32+
*ngIf="this.showDetailButton"
3333
class="expand icon detail-button"
3434
icon="${IconType.Collapsed}"
3535
size="${ButtonSize.ExtraSmall}"
@@ -38,10 +38,10 @@ import {
3838
htTooltip="Show Details for {{ this.label }}"
3939
></ht-button>
4040
<ht-icon
41-
*ngIf="this.icon && !this.showdetailButton"
41+
*ngIf="this.icon && !this.showDetailButton"
4242
class="icon label-icon"
4343
[icon]="this.icon"
44-
size="${IconSize.Small}"
44+
size="${IconSize.ExtraSmall}"
4545
></ht-icon>
4646
<ht-label
4747
[label]="this.label"
@@ -94,7 +94,7 @@ export class LabelDetailComponent {
9494
@Input()
9595
public additionalDetails?: string[] = [];
9696

97-
public showdetailButton: boolean = false;
97+
public showDetailButton: boolean = false;
9898
public locationPreferences: PopoverRelativePositionLocation[] = [PopoverRelativePositionLocation.OverLeftAligned];
9999

100100
private popoverRef?: PopoverRef;

0 commit comments

Comments
 (0)