From ae63f647710f86bc120c2e7a25ca2ea87aa75448 Mon Sep 17 00:00:00 2001 From: Richard Fogaca Nienkotter <63572350+richardfogaca@users.noreply.github.com> Date: Mon, 10 Nov 2025 12:51:12 -0300 Subject: [PATCH] style(sqllab): restore Template Parameters modal styling (#35965) --- .../components/TemplateParamsEditor/index.tsx | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/TemplateParamsEditor/index.tsx b/superset-frontend/src/SqlLab/components/TemplateParamsEditor/index.tsx index 03717f41048..67e4f4d4d4d 100644 --- a/superset-frontend/src/SqlLab/components/TemplateParamsEditor/index.tsx +++ b/superset-frontend/src/SqlLab/components/TemplateParamsEditor/index.tsx @@ -36,6 +36,14 @@ const StyledConfigEditor = styled(ConfigEditor)` } `; +const StyledParagraph = styled.p` + margin-top: 0; +`; + +const Code = styled.code` + color: ${({ theme }) => theme.colorPrimary}; +`; + export type TemplateParamsEditorProps = { queryEditorId: string; language: 'yaml' | 'json'; @@ -65,13 +73,11 @@ const TemplateParamsEditor = ({ const modalBody = (
-

- {t('Assign a set of parameters as')} - JSON - {t('below (example:')} - {'{"my_table": "foo"}'} - {t('), and they become available in your SQL (example:')} - SELECT * FROM {'{{ my_table }}'} ) {t('by using')}  + + {t('Assign a set of parameters as')} JSON{' '} + {t('below (example:')} {'{"my_table": "foo"}'} + {t('), and they become available in your SQL (example:')}{' '} + SELECT * FROM {'{{ my_table }}'} ) {t('by using')}  {' '} {t('syntax.')} -

+