diff --git a/packages/grafana-ui/src/components/ColorPicker/ColorPicker.story.tsx b/packages/grafana-ui/src/components/ColorPicker/ColorPicker.story.tsx index b96f68c3ebc..547e3a48a95 100644 --- a/packages/grafana-ui/src/components/ColorPicker/ColorPicker.story.tsx +++ b/packages/grafana-ui/src/components/ColorPicker/ColorPicker.story.tsx @@ -3,7 +3,7 @@ import { useArgs } from '@storybook/client-api'; import { ComponentMeta, ComponentStory } from '@storybook/react'; import React from 'react'; -import { SeriesColorPicker, ColorPicker } from '@grafana/ui'; +import { SeriesColorPicker, ColorPicker, clearButtonStyles, useStyles2 } from '@grafana/ui'; import { withCenteredStory } from '../../utils/storybook/withCenteredStory'; import { renderComponentWithTheme } from '../../utils/storybook/withTheme'; @@ -44,6 +44,7 @@ export const Basic: ComponentStory = ({ color, enableNamedCo export const SeriesPicker: ComponentStory = ({ color, enableNamedColors }) => { const [, updateArgs] = useArgs(); + const clearButton = useStyles2(clearButtonStyles); return ( = ({ color, }} > {({ ref, showColorPicker, hideColorPicker }) => ( -
+
+ )}
);