Skip to content

Commit 224ceb0

Browse files
committed
feat(thresholds): updated design for grab handles
1 parent 89ca15f commit 224ceb0

File tree

6 files changed

+54
-11
lines changed

6 files changed

+54
-11
lines changed

public/app/plugins/panel/graph/thresholds.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ export class ThresholdControls {
1919
colorClass = 'warn';
2020
}
2121

22-
return `<div class="alert-handle-wrapper alert-handle-wrapper--T${handleIndex}">
23-
<div class="alert-handle-line alert-handle-line--${colorClass}">
24-
</div>
25-
<div class="alert-handle" data-handle-index="${handleIndex}">
26-
<i class="icon-gf icon-gf-${colorClass} alert-icon-${colorClass}"></i>
27-
<span class="alert-handle-value">${valueStr}</span>
28-
</div>
22+
return `
23+
<div class="alert-handle-wrapper alert-handle-wrapper--T${handleIndex}">
24+
<div class="alert-handle-line alert-handle-line--${colorClass}">
25+
</div>
26+
<div class="alert-handle" data-handle-index="${handleIndex}">
27+
<i class="icon-gf icon-gf-${colorClass} alert-icon-${colorClass}"></i>
28+
<span class="alert-handle-value">${valueStr}<i class="alert-handle-grip"></i></span>
29+
</div>
2930
</div>`;
3031

3132
}

public/img/grab_dark.svg

Lines changed: 15 additions & 0 deletions
Loading

public/img/grab_light.svg

Lines changed: 15 additions & 0 deletions
Loading

public/sass/_variables.dark.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ $btn-link-color: $gray-3;
152152

153153
$iconContainerBackground: $black;
154154

155-
$btn-divider-left: $dark-5;
156-
$btn-divider-right: $dark-1;
155+
$btn-divider-left: $dark-4;
156+
$btn-divider-right: $dark-2;
157+
158+
$btn-drag-image: '../img/grab_dark.svg';
157159

158160
// Forms
159161
// -------------------------

public/sass/_variables.light.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ $btn-inverse-text-color: $dark-4;
157157

158158
$btn-link-color: $gray-1;
159159

160-
$btn-divider-left: $dark-5;
161-
$btn-divider-right: $dark-1;
160+
$btn-divider-left: $gray-4;
161+
$btn-divider-right: $gray-7;
162+
$btn-drag-image: '../img/grab_light.svg';
162163

163164
$iconContainerBackground: $white;
164165

public/sass/components/_panel_graph.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,15 @@
350350
border-left: 1px solid $btn-divider-right;
351351
padding: 0.5rem;
352352
line-height: 2rem;
353+
354+
.alert-handle-grip {
355+
background: url($btn-drag-image) no-repeat 50% 50%;
356+
background-size: 8px;
357+
float: right;
358+
width: 1rem;
359+
height: 2rem;
360+
margin-right: 2px;
361+
}
353362
}
354363

355364
&--T1 {

0 commit comments

Comments
 (0)