From ed98481bb2cd70aeb83c003d436580210129704c Mon Sep 17 00:00:00 2001 From: Rachel Shen Date: Wed, 13 Jan 2021 09:45:55 -0700 Subject: [PATCH] fix(legend): remove ids for circles (#973) --- .../src/components/__snapshots__/chart.test.tsx.snap | 2 +- .../osd-charts/src/components/icons/assets/dot.tsx | 10 ++-------- .../legend/__snapshots__/legend.test.tsx.snap | 6 +++--- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/osd-charts/src/components/__snapshots__/chart.test.tsx.snap b/packages/osd-charts/src/components/__snapshots__/chart.test.tsx.snap index fce65eefa4bd..2d4e865b1342 100644 --- a/packages/osd-charts/src/components/__snapshots__/chart.test.tsx.snap +++ b/packages/osd-charts/src/components/__snapshots__/chart.test.tsx.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Chart should render the legend name test 1`] = `"
"`; +exports[`Chart should render the legend name test 1`] = `"
"`; diff --git a/packages/osd-charts/src/components/icons/assets/dot.tsx b/packages/osd-charts/src/components/icons/assets/dot.tsx index 3c4321869e01..28e78788f8c4 100644 --- a/packages/osd-charts/src/components/icons/assets/dot.tsx +++ b/packages/osd-charts/src/components/icons/assets/dot.tsx @@ -29,15 +29,9 @@ export class DotIcon extends React.Component { } render() { - const { color } = this.props; return ( - - - - - - - + + ); } diff --git a/packages/osd-charts/src/components/legend/__snapshots__/legend.test.tsx.snap b/packages/osd-charts/src/components/legend/__snapshots__/legend.test.tsx.snap index a64f4750d2c7..73439392f5a1 100644 --- a/packages/osd-charts/src/components/legend/__snapshots__/legend.test.tsx.snap +++ b/packages/osd-charts/src/components/legend/__snapshots__/legend.test.tsx.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Legend #legendColorPicker should match snapshot after onChange is called 1`] = `"
  • "`; +exports[`Legend #legendColorPicker should match snapshot after onChange is called 1`] = `"
  • "`; -exports[`Legend #legendColorPicker should match snapshot after onClose is called 1`] = `"
  • "`; +exports[`Legend #legendColorPicker should match snapshot after onClose is called 1`] = `"
  • "`; exports[`Legend #legendColorPicker should render colorPicker when color is clicked 1`] = `"
    Custom Color Picker
    "`; -exports[`Legend #legendColorPicker should render colorPicker when color is clicked 2`] = `"
  • Custom Color Picker
  • "`; +exports[`Legend #legendColorPicker should render colorPicker when color is clicked 2`] = `"
  • Custom Color Picker
  • "`;