diff --git a/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx b/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx index 9d052bd853e..6416e996fd2 100644 --- a/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx +++ b/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx @@ -1,6 +1,7 @@ import React, { useState, useCallback } from 'react'; import mdx from './Checkbox.mdx'; import { Checkbox } from './Checkbox'; +import { VerticalGroup } from '../Layout/Layout'; export default { title: 'Forms/Checkbox', @@ -34,3 +35,25 @@ export const uncontrolled = () => { /> ); }; + +export const StackedList = () => { + return ( + + + + + + ); +}; diff --git a/packages/grafana-ui/src/components/Forms/Checkbox.tsx b/packages/grafana-ui/src/components/Forms/Checkbox.tsx index fabac95b6f2..8483357d0c1 100644 --- a/packages/grafana-ui/src/components/Forms/Checkbox.tsx +++ b/packages/grafana-ui/src/components/Forms/Checkbox.tsx @@ -65,7 +65,6 @@ export const getCheckboxStyles = stylesFactory((theme: GrafanaTheme2) => { position: relative; padding-left: ${checkboxSize}; vertical-align: middle; - height: ${theme.spacing(3)}; `, input: css` position: absolute;