From 04d7c5f7905b605ebf9edafeffc5c0a3f85ad761 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 2 May 2023 08:16:26 -0400 Subject: [PATCH] [v9.4.x] Theme: Fix wrong code segment in theme.md (#65438) Theme: Fix wrong code segment in theme.md (#62488) * fix wrong markdown * fix prettier (cherry picked from commit 3335d46c5f44058696d97886af7833106471b853) Co-authored-by: Sven Grossmann --- contribute/style-guides/themes.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contribute/style-guides/themes.md b/contribute/style-guides/themes.md index f6a0eea866b..f6118bd1d23 100644 --- a/contribute/style-guides/themes.md +++ b/contribute/style-guides/themes.md @@ -29,11 +29,12 @@ function Foo(props: FooProps) { const styles = useStyles2(getStyles); // Use styles with className } -``` -const getStyles = (theme: GrafanaTheme2) => css({ -padding: theme.spacing(1,2) -}); +const getStyles = (theme: GrafanaTheme2) => + css({ + padding: theme.spacing(1, 2), + }); +``` #### Get the theme object