From b3f4f90e006f5b4c9b476460a71685396486cc54 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 +- src/components/icons/assets/dot.tsx | 10 ++-------- .../legend/__snapshots__/legend.test.tsx.snap | 6 +++--- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/components/__snapshots__/chart.test.tsx.snap b/src/components/__snapshots__/chart.test.tsx.snap index fce65eefa4..2d4e865b13 100644 --- a/src/components/__snapshots__/chart.test.tsx.snap +++ b/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/src/components/icons/assets/dot.tsx b/src/components/icons/assets/dot.tsx index 3c4321869e..28e78788f8 100644 --- a/src/components/icons/assets/dot.tsx +++ b/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/src/components/legend/__snapshots__/legend.test.tsx.snap b/src/components/legend/__snapshots__/legend.test.tsx.snap index a64f4750d2..73439392f5 100644 --- a/src/components/legend/__snapshots__/legend.test.tsx.snap +++ b/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
  • "`;