From 68eb9687d4a69ec34fb3328c6d9482e2c136b0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Casper=20H=C3=BCbertz?= Date: Fri, 14 Jun 2019 11:23:37 +0200 Subject: [PATCH] [APM] UI Dark theme fixes (#38840) * Removed hard-coded background color * Updated x-axis ticks text color to match other charts * Updated to match Eui border-radius * Update snapshots --- .../__snapshots__/Stackframe.test.tsx.snap | 14 ++-- .../__snapshots__/CustomPlot.test.js.snap | 4 +- .../__snapshots__/Histogram.test.js.snap | 4 +- .../shared/charts/Timeline/TimelineAxis.js | 3 +- .../__snapshots__/Timeline.test.js.snap | 83 +++++++++---------- x-pack/plugins/apm/public/style/variables.ts | 2 +- 6 files changed, 54 insertions(+), 56 deletions(-) diff --git a/x-pack/plugins/apm/public/components/shared/Stacktrace/__test__/__snapshots__/Stackframe.test.tsx.snap b/x-pack/plugins/apm/public/components/shared/Stacktrace/__test__/__snapshots__/Stackframe.test.tsx.snap index 7f0016210645..1b465db1c626 100644 --- a/x-pack/plugins/apm/public/components/shared/Stacktrace/__test__/__snapshots__/Stackframe.test.tsx.snap +++ b/x-pack/plugins/apm/public/components/shared/Stacktrace/__test__/__snapshots__/Stackframe.test.tsx.snap @@ -15,7 +15,7 @@ exports[`Stackframe when stackframe has source lines should render correctly 1`] .c4 { position: relative; - border-radius: 0 0 5px 5px; + border-radius: 0 0 4px 4px; } .c5 { @@ -31,7 +31,7 @@ exports[`Stackframe when stackframe has source lines should render correctly 1`] position: absolute; top: 0; left: 0; - border-radius: 0 0 0 5px; + border-radius: 0 0 0 4px; background: #f5f7fa; } @@ -47,7 +47,7 @@ exports[`Stackframe when stackframe has source lines should render correctly 1`] } .c7:last-of-type { - border-radius: 0 0 0 5px; + border-radius: 0 0 0 4px; } .c8 { @@ -63,7 +63,7 @@ exports[`Stackframe when stackframe has source lines should render correctly 1`] } .c8:last-of-type { - border-radius: 0 0 0 5px; + border-radius: 0 0 0 4px; } .c9 { @@ -74,7 +74,7 @@ exports[`Stackframe when stackframe has source lines should render correctly 1`] } .c9:last-of-type { - border-radius: 0 0 5px 0; + border-radius: 0 0 4px 0; } .c10 { @@ -98,7 +98,7 @@ exports[`Stackframe when stackframe has source lines should render correctly 1`] .c1 { border-bottom: 1px solid #d3dae6; - border-radius: 5px 5px 0 0; + border-radius: 4px 4px 0 0; } .c0 { @@ -106,7 +106,7 @@ exports[`Stackframe when stackframe has source lines should render correctly 1`] font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size: 14px; border: 1px solid #d3dae6; - border-radius: 5px; + border-radius: 4px; background: #f5f7fa; } diff --git a/x-pack/plugins/apm/public/components/shared/charts/CustomPlot/test/__snapshots__/CustomPlot.test.js.snap b/x-pack/plugins/apm/public/components/shared/charts/CustomPlot/test/__snapshots__/CustomPlot.test.js.snap index 119f46f09d1e..7cc68fefb7ca 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/CustomPlot/test/__snapshots__/CustomPlot.test.js.snap +++ b/x-pack/plugins/apm/public/components/shared/charts/CustomPlot/test/__snapshots__/CustomPlot.test.js.snap @@ -2859,7 +2859,7 @@ Array [ transform: translateY(-50%); border: 1px solid #d3dae6; background: #ffffff; - border-radius: 5px; + border-radius: 4px; font-size: 14px; color: #000000; } @@ -2867,7 +2867,7 @@ Array [ .c1 { background: #f5f7fa; border-bottom: 1px solid #d3dae6; - border-radius: 5px 5px 0 0; + border-radius: 4px 4px 0 0; padding: 8px; color: #98a2b3; } diff --git a/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap b/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap index 305acafcf559..dcbaeccf1450 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap +++ b/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap @@ -1412,7 +1412,7 @@ exports[`Histogram when hovering over a non-empty bucket should have correct mar transform: translateY(-50%); border: 1px solid #d3dae6; background: #ffffff; - border-radius: 5px; + border-radius: 4px; font-size: 14px; color: #000000; } @@ -1420,7 +1420,7 @@ exports[`Histogram when hovering over a non-empty bucket should have correct mar .c1 { background: #f5f7fa; border-bottom: 1px solid #d3dae6; - border-radius: 5px 5px 0 0; + border-radius: 4px 4px 0 0; padding: 8px; color: #98a2b3; } diff --git a/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js b/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js index 10e523c38727..722dc8562327 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js +++ b/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js @@ -43,7 +43,6 @@ function TimelineAxis({ plotValues, agentMarks, traceRootDuration }) {
diff --git a/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap b/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap index 3d2c94ea8918..f87c799274e8 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap +++ b/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap @@ -48,7 +48,6 @@ exports[`Timeline should render with data 1`] = `