From 218244988ee57cc33aa164809ad81e8ec6085bf0 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Fri, 29 Sep 2023 11:16:16 +0200 Subject: [PATCH] Capitalize headlines & button texts in Advanced Search app using css This way we make sure that whatever the input text is, even in all lower case - it will be taken care of and capitalized. --- .../Blocks/advanced-search/AdvancedSearch.tsx | 14 +++++++++----- .../Library/input-preview/InputPreview.tsx | 16 ++++++++++++---- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/stories/Blocks/advanced-search/AdvancedSearch.tsx b/src/stories/Blocks/advanced-search/AdvancedSearch.tsx index 7e486c994..b205059e8 100644 --- a/src/stories/Blocks/advanced-search/AdvancedSearch.tsx +++ b/src/stories/Blocks/advanced-search/AdvancedSearch.tsx @@ -24,7 +24,7 @@ export const AdvancedSearch: React.FC = ({ }) => { return (
-

+

{isCqlSearch ? "CQL søgning" : "Avanceret søgning"}

{!isCqlSearch && ( @@ -67,13 +67,17 @@ export const AdvancedSearch: React.FC = ({ isAContainer={false} className="input-and-preview__preview" > -
+
CQL søgestreng

{cqlPreviewText}

- - + +
@@ -125,7 +129,7 @@ export const AdvancedSearch: React.FC = ({
-

+

Viser materialer (20)

diff --git a/src/stories/Library/input-preview/InputPreview.tsx b/src/stories/Library/input-preview/InputPreview.tsx index 0d1efac60..5f555d9d4 100644 --- a/src/stories/Library/input-preview/InputPreview.tsx +++ b/src/stories/Library/input-preview/InputPreview.tsx @@ -20,12 +20,20 @@ const InputPreview: React.FC = ({ "input-and-preview__preview--mobile": isMobile, })} > -

CQL søgestreng

+

+ CQL søgestreng +

{cqlPreviewText}

);