From 725f29e6d0fe9f879a8235778d991c002e644a00 Mon Sep 17 00:00:00 2001 From: Laura Benz <48948963+L-M-K-B@users.noreply.github.com> Date: Thu, 13 Apr 2023 14:21:36 +0200 Subject: [PATCH] Design System: Set TextArea to display: block in order to remove spacing below (#66262) refactor: set textarea to display: block and add margin --- packages/grafana-ui/src/components/TextArea/TextArea.tsx | 1 + public/app/features/explore/RichHistory/RichHistoryCard.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/grafana-ui/src/components/TextArea/TextArea.tsx b/packages/grafana-ui/src/components/TextArea/TextArea.tsx index 3497b33f4d8..ca79c7f5f94 100644 --- a/packages/grafana-ui/src/components/TextArea/TextArea.tsx +++ b/packages/grafana-ui/src/components/TextArea/TextArea.tsx @@ -24,6 +24,7 @@ const getTextAreaStyle = stylesFactory((theme: GrafanaTheme2, invalid = false) = sharedInputStyle(theme), getFocusStyle(theme), css` + display: block; border-radius: ${theme.shape.borderRadius()}; padding: ${theme.spacing.gridSize / 4}px ${theme.spacing.gridSize}px; width: 100%; diff --git a/public/app/features/explore/RichHistory/RichHistoryCard.tsx b/public/app/features/explore/RichHistory/RichHistoryCard.tsx index c21c423f942..bd81b1ed3d5 100644 --- a/public/app/features/explore/RichHistory/RichHistoryCard.tsx +++ b/public/app/features/explore/RichHistory/RichHistoryCard.tsx @@ -108,6 +108,7 @@ const getStyles = (theme: GrafanaTheme2) => { `, commentButtonRow: css` > * { + margin-top: ${theme.spacing(1)}; margin-right: ${theme.spacing(1)}; } `,