From 03a80d5d2f4b4f2a066721f3aec1207c652c6186 Mon Sep 17 00:00:00 2001 From: Geido <60598000+geido@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:45:09 +0300 Subject: [PATCH] chore: Update font-sizes in QueryPreviewModal (#19620) * Remove hacky font-sizes * Remove hacky font-size SavedQueryPreviewModal --- .../src/views/CRUD/data/query/QueryPreviewModal.tsx | 4 ++-- .../src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx b/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx index 397970e1b2941..694b490557001 100644 --- a/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx +++ b/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx @@ -30,14 +30,14 @@ import { QueryObject } from 'src/views/CRUD/types'; const QueryTitle = styled.div` color: ${({ theme }) => theme.colors.secondary.light2}; - font-size: ${({ theme }) => theme.typography.sizes.s - 1}px; + font-size: ${({ theme }) => theme.typography.sizes.s}px; margin-bottom: 0; text-transform: uppercase; `; const QueryLabel = styled.div` color: ${({ theme }) => theme.colors.grayscale.dark2}; - font-size: ${({ theme }) => theme.typography.sizes.m - 1}px; + font-size: ${({ theme }) => theme.typography.sizes.m}px; padding: 4px 0 24px 0; `; diff --git a/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx b/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx index 883ce3b695005..e8250d0fb7f80 100644 --- a/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx +++ b/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx @@ -28,14 +28,14 @@ import { useQueryPreviewState } from 'src/views/CRUD/data/hooks'; const QueryTitle = styled.div` color: ${({ theme }) => theme.colors.secondary.light2}; - font-size: ${({ theme }) => theme.typography.sizes.s - 1}px; + font-size: ${({ theme }) => theme.typography.sizes.s}px; margin-bottom: 0; text-transform: uppercase; `; const QueryLabel = styled.div` color: ${({ theme }) => theme.colors.grayscale.dark2}; - font-size: ${({ theme }) => theme.typography.sizes.m - 1}px; + font-size: ${({ theme }) => theme.typography.sizes.m}px; padding: 4px 0 16px 0; `;