Skip to content

Commit c89909b

Browse files
committed
save
1 parent 9991820 commit c89909b

5 files changed

Lines changed: 26 additions & 26 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
@@ -60,37 +60,36 @@ const DocSearchModalGlobal = ({
6060
size={isDesktop ? ModalSize.LARGE : ModalSize.FULL}
6161
hideCloseButton
6262
aria-describedby="doc-search-modal-title"
63+
title={
64+
<>
65+
<Text as="h2" $margin="0" $size="s" $align="flex-start">
66+
{t('Search for a document')}
67+
</Text>
68+
<Box $position="absolute" $css="top: 4px; right: 4px;">
69+
<ButtonCloseModal
70+
aria-label={t('Close the search modal')}
71+
onClick={modalProps.onClose}
72+
size="small"
73+
color="brand"
74+
variant="tertiary"
75+
/>
76+
</Box>
77+
</>
78+
}
6379
>
6480
<Box
6581
$direction="column"
6682
$justify="space-between"
6783
className="--docs--doc-search-modal"
68-
$padding={{ vertical: 'base' }}
84+
$padding={{ bottom: 'base' }}
6985
>
70-
<Text
71-
as="h1"
72-
$margin="0"
73-
id="doc-search-modal-title"
74-
className="sr-only"
75-
>
76-
{t('Search docs')}
77-
</Text>
78-
<Box $position="absolute" $css="top: 4px; right: 4px;">
79-
<ButtonCloseModal
80-
aria-label={t('Close the search modal')}
81-
onClick={modalProps.onClose}
82-
size="small"
83-
color="brand"
84-
variant="tertiary"
85-
/>
86-
</Box>
8786
<QuickSearch
8887
placeholder={t('Type the name of a document')}
8988
loading={loading}
9089
onFilter={handleInputSearch}
9190
>
9291
<Box
93-
$padding={{ horizontal: '10px', vertical: 'base' }}
92+
$padding={{ horizontal: 'sm', vertical: 'base' }}
9493
$height={isDesktop ? '500px' : 'calc(100vh - 68px - 1rem)'}
9594
>
9695
{showFilters && (

0 commit comments

Comments
 (0)