Skip to content

Commit ab1270e

Browse files
Replaces the Custom Color Picker on TSVB with the EuiColorPicker (#68888)
* Replace the Custom Color Picker on TSVB with the EuiColorPicker * Remove the custom picker sass * Remove private modules of eui and the custom color swatches * Clear the color * changes in test implementation Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 8a6aab3 commit ab1270e

File tree

9 files changed

+158
-527
lines changed

9 files changed

+158
-527
lines changed

src/plugins/vis_type_timeseries/public/application/components/_color_picker.scss

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,6 @@
88
position: relative;
99
}
1010

11-
.tvbColorPicker__swatch-empty,
12-
.tvbColorPicker__swatch {
13-
// SASSTODO: Replace with EUI component
14-
// sass-lint:disable-block placeholder-in-extend
15-
@extend .euiColorPickerSwatch;
16-
}
17-
18-
.tvbColorPicker__swatch-empty {
19-
background-color: transparent;
20-
background-size: 22px 22px;
21-
background-image: repeating-linear-gradient(
22-
-45deg,
23-
$euiColorDanger,
24-
$euiColorDanger 2px,
25-
transparent 2px,
26-
transparent $euiSize
27-
);
28-
}
29-
3011
.tvbColorPicker__clear {
3112
margin-left: $euiSizeXS;
3213
}
33-
34-
.tvbColorPicker__popover {
35-
position: absolute;
36-
top: $euiSizeL;
37-
z-index: 2;
38-
}
39-
40-
.tvbColorPicker__cover {
41-
position: fixed;
42-
top: 0;
43-
right: 0;
44-
left: 0;
45-
bottom: 0;
46-
}

src/plugins/vis_type_timeseries/public/application/components/_custom_color_picker.scss

Lines changed: 0 additions & 97 deletions
This file was deleted.

src/plugins/vis_type_timeseries/public/application/components/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@import './annotations_editor';
22
@import './color_rules';
33
@import './color_picker';
4-
@import './custom_color_picker';
54
@import './error';
65
@import './no_data';
76
@import './markdown_editor';

src/plugins/vis_type_timeseries/public/application/components/color_picker.js

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/plugins/vis_type_timeseries/public/application/components/color_picker.test.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)