diff --git a/packages/grafana-ui/src/components/Toggletip/Toggletip.story.tsx b/packages/grafana-ui/src/components/Toggletip/Toggletip.story.tsx index 8a720c02ae3..2f52a986975 100644 --- a/packages/grafana-ui/src/components/Toggletip/Toggletip.story.tsx +++ b/packages/grafana-ui/src/components/Toggletip/Toggletip.story.tsx @@ -1,16 +1,9 @@ import { Meta, StoryFn } from '@storybook/react'; import React from 'react'; -import { SelectableValue } from '@grafana/data'; - import { withCenteredStory } from '../../utils/storybook/withCenteredStory'; import { Button } from '../Button'; import { CustomScrollbar } from '../CustomScrollbar/CustomScrollbar'; -import { ButtonSelect } from '../Dropdown/ButtonSelect'; -import { InlineField } from '../Forms/InlineField'; -import { Icon } from '../Icon/Icon'; -import { Input } from '../Input/Input'; -import { Select } from '../Select/Select'; import mdx from '../Toggletip/Toggletip.mdx'; import { Toggletip } from './Toggletip'; @@ -93,89 +86,6 @@ Basic.args = { theme: 'info', }; -export const HostingMultiElements: StoryFn = ({ theme, closeButton, placement }) => { - const selectOptions: Array> = [ - { label: 'Sharilyn Markowitz', value: 1 }, - { label: 'Naomi Striplin', value: 2 }, - { label: 'Beau Bevel', value: 3 }, - { label: 'Garrett Starkes', value: 4 }, - ]; - const dropdownOptions: Array> = [ - { label: 'Option A', value: 'a' }, - { label: 'Option B', value: 'b' }, - { label: 'Option C', value: 'c' }, - ]; - const header = ( -
- -  Header title with icon -
- ); - const body = ( -
- - - - - {}} - style={{ width: '160px' }} - > - -
-
- Wants to know more?  - - -  Click here! - -
-
- ); - const footer = ( -
- -   - -
- ); - - return ( - - - - ); -}; - -HostingMultiElements.parameters = { - controls: { - hideNoControlsWarning: true, - exclude: ['title', 'content', 'footer', 'onClose', 'children'], - }, -}; -HostingMultiElements.args = { - placement: 'top', - closeButton: true, - theme: 'info', -}; - export const LongContent: StoryFn = ({ title, content, diff --git a/packages/grafana-ui/src/components/Toggletip/Toggletip.tsx b/packages/grafana-ui/src/components/Toggletip/Toggletip.tsx index 35699b9c6bd..412e8a5166b 100644 --- a/packages/grafana-ui/src/components/Toggletip/Toggletip.tsx +++ b/packages/grafana-ui/src/components/Toggletip/Toggletip.tsx @@ -141,14 +141,14 @@ export const getStyles = (theme: GrafanaTheme2) => { theme.components.tooltip.background, theme.components.tooltip.background, theme.components.tooltip.text, - { topBottom: 3, rightLeft: 3 } + { topBottom: 2, rightLeft: 2 } ); const error = buildTooltipTheme( theme, theme.colors.error.main, theme.colors.error.main, theme.colors.error.contrastText, - { topBottom: 3, rightLeft: 3 } + { topBottom: 2, rightLeft: 2 } ); return {