Skip to content

Commit 0bf9667

Browse files
committed
save
1 parent 04c9dc3 commit 0bf9667

6 files changed

Lines changed: 27 additions & 27 deletions

File tree

src/frontend/apps/impress/src/components/filter/FilterDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const FilterDropdown = ({
4646
$direction="row"
4747
$align="center"
4848
>
49-
<Text $weight={400} $variation="tertiary" $theme="neutral">
49+
<Text $weight={400} $variation="tertiary" $theme="neutral" $size="sm">
5050
{selectedOption?.label ?? options[0].label}
5151
</Text>
5252
<Icon

src/frontend/apps/impress/src/components/quick-search/QuickSearchInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const QuickSearchInput = ({
4343
$align="center"
4444
className="quick-search-input"
4545
$gap={spacingsTokens['2xs']}
46-
$padding={{ horizontal: 'base', vertical: 'xxs' }}
46+
$padding={{ horizontal: 'base', vertical: 'xs' }}
4747
>
4848
<Icon iconName="search" $variation="secondary" aria-hidden="true" />
4949
<Command.Input
@@ -58,7 +58,7 @@ export const QuickSearchInput = ({
5858
data-testid="quick-search-input"
5959
/>
6060
</Box>
61-
{separator && <HorizontalSeparator $margin={{ top: 'base' }} />}
61+
{separator && <HorizontalSeparator $margin={{ top: '2xs' }} />}
6262
</>
6363
);
6464
};

src/frontend/apps/impress/src/components/quick-search/QuickSearchStyle.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ export const QuickSearchStyle = createGlobalStyle`
1616
}
1717
1818
[cmdk-input] {
19+
font-family: var(--c--globals--font--families--base);
1920
border: none;
2021
width: 100%;
21-
font-size: 17px;
22+
font-size: 16px;
2223
background: white;
2324
outline: none;
2425
color: var(--c--contextuals--content--semantic--neutral--primary);

src/frontend/apps/impress/src/features/docs/doc-search/components/DocSearchFilters.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ export const DocSearchFilters = ({
3838
$justify="space-between"
3939
$gap="10px"
4040
data-testid="doc-search-filters"
41-
$margin={{ vertical: 'base' }}
41+
$margin={{ vertical: 'sm' }}
4242
>
4343
<Box $direction="row" $align="center" $gap="10px">
4444
<FilterDropdown
4545
selectedValue={values?.target}
4646
options={[
4747
{
48-
label: t('All docs'),
48+
label: t('All documents'),
4949
value: DocSearchTarget.ALL,
5050
callback: () => handleTargetChange(DocSearchTarget.ALL),
5151
},
5252
{
53-
label: t('Current doc'),
53+
label: t('Current document only'),
5454
value: DocSearchTarget.CURRENT,
5555
callback: () => handleTargetChange(DocSearchTarget.CURRENT),
5656
},

src/frontend/apps/impress/src/features/docs/doc-search/components/DocSearchModal.tsx

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,38 +65,37 @@ const DocSearchModalGlobal = ({
6565
size={isDesktop ? ModalSize.LARGE : ModalSize.FULL}
6666
hideCloseButton
6767
aria-describedby="doc-search-modal-title"
68+
title={
69+
<>
70+
<Text as="h2" $margin="0" $size="s" $align="flex-start">
71+
{t('Search for a document')}
72+
</Text>
73+
<Box $position="absolute" $css="top: 4px; right: 4px;">
74+
<ButtonCloseModal
75+
aria-label={t('Close the search modal')}
76+
onClick={modalProps.onClose}
77+
size="small"
78+
color="brand"
79+
variant="tertiary"
80+
/>
81+
</Box>
82+
</>
83+
}
6884
>
6985
<Box
7086
aria-label={t('Search modal')}
7187
$direction="column"
7288
$justify="space-between"
7389
className="--docs--doc-search-modal"
74-
$padding={{ vertical: 'base' }}
90+
$padding={{ bottom: 'base' }}
7591
>
76-
<Text
77-
as="h1"
78-
$margin="0"
79-
id="doc-search-modal-title"
80-
className="sr-only"
81-
>
82-
{t('Search docs')}
83-
</Text>
84-
<Box $position="absolute" $css="top: 4px; right: 4px;">
85-
<ButtonCloseModal
86-
aria-label={t('Close the search modal')}
87-
onClick={modalProps.onClose}
88-
size="small"
89-
color="brand"
90-
variant="tertiary"
91-
/>
92-
</Box>
9392
<QuickSearch
9493
placeholder={t('Type the name of a document')}
9594
loading={loading}
9695
onFilter={handleInputSearch}
9796
>
9897
<Box
99-
$padding={{ horizontal: '10px', vertical: 'base' }}
98+
$padding={{ horizontal: 'sm', vertical: 'base' }}
10099
$height={isDesktop ? '500px' : 'calc(100vh - 68px - 1rem)'}
101100
>
102101
{showFilters && (

src/frontend/apps/impress/src/features/docs/doc-search/components/DocSearchSubPageContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const DocSearchSubPageContent = ({
6969
}
7070

7171
setDocsData({
72-
groupName: subDocs.length > 0 ? t('Select a doc') : '',
72+
groupName: subDocs.length > 0 ? t('Select a document') : '',
7373
elements: search ? subDocs : [],
7474
emptyString: search ? t('No document found') : t('Search by title'),
7575
endActions: subDocsHasNextPage

0 commit comments

Comments
 (0)