Skip to content

Commit 9da73b5

Browse files
Add Tooltip
1 parent c7bc996 commit 9da73b5

3 files changed

Lines changed: 25 additions & 11 deletions

File tree

App/frontend-app/src/components/chat/chatRoom.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,9 @@ export function ChatRoom({ searchResultDocuments, selectedDocuments, chatWithDoc
594594
disabled={isLoading}
595595
onSubmit={handleSend}
596596
disableSend = {textAreaValue.trim().length === 0 || isLoading}
597-
contentAfter={undefined}
597+
send={{
598+
title: "Send"
599+
}}
598600
/>
599601
</div>
600602
</div >

App/frontend-app/src/components/documentViewer/dialogTitleBar.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from 'react';
2-
import { Button, Divider, Text, Tab, TabList, SelectTabEvent, SelectTabData, DialogTrigger } from '@fluentui/react-components';
2+
import { Button, Divider, Text, Tab, TabList, SelectTabEvent, SelectTabData, DialogTrigger, Tooltip } from '@fluentui/react-components';
33
import { Dismiss24Regular, ArrowHookDownLeft16Filled, SparkleFilled, DocumentBulletListMultipleRegular, DocumentBulletListRegular, LayerDiagonalSparkle24Regular, InfoRegular } from '@fluentui/react-icons';
44
import { DialogTitle } from '@fluentui/react-components';
55
import { KMBrandRamp } from '../../styles';
@@ -66,12 +66,14 @@ export function DialogTitleBar({
6666
style={{ width: "100%" }}
6767
action={
6868
<DialogTrigger action="close">
69-
<Button
70-
appearance="subtle"
71-
aria-label="close"
72-
icon={<Dismiss24Regular />}
73-
onClick={handleDialogClose}
74-
/>
69+
<Tooltip content="Close" relationship="label" withArrow>
70+
<Button
71+
appearance="subtle"
72+
aria-label="close"
73+
icon={<Dismiss24Regular />}
74+
onClick={handleDialogClose}
75+
/>
76+
</Tooltip>
7577
</DialogTrigger>
7678
}
7779
>

App/frontend-app/src/components/pagination/pagination.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from "@fluentui/react-components";
1+
import { Button, Tooltip } from "@fluentui/react-components";
22
import { DOTS, usePagination } from "../../utils/customHooks/usePagination";
33
import { useState } from "react";
44
import { ChevronLeft24Regular, ChevronRight24Regular } from "@fluentui/react-icons";
@@ -55,9 +55,19 @@ export function Pagination({ totalCount, pageSize, currentPage, siblingCount = 1
5555

5656
return (
5757
<ul className="flex flex-wrap">
58-
<Button icon={<ChevronLeft24Regular />} className="h-8" appearance="subtle" onClick={onPrevious} disabled={isDisabled || isLeftArrowDisabled}></Button>
58+
<Tooltip
59+
content="Previous"
60+
relationship="label"
61+
withArrow>
62+
<Button icon={<ChevronLeft24Regular />} className="h-8" appearance="subtle" onClick={onPrevious} disabled={isDisabled || isLeftArrowDisabled}></Button>
63+
</Tooltip>
5964
{items}
60-
<Button icon={<ChevronRight24Regular />} className="h-8" appearance="subtle" onClick={onNext} disabled={isDisabled || isRightArrowDisabled}></Button>
65+
<Tooltip
66+
content="Next"
67+
relationship="label"
68+
withArrow>
69+
<Button icon={<ChevronRight24Regular />} className="h-8" appearance="subtle" onClick={onNext} disabled={isDisabled || isRightArrowDisabled}></Button>
70+
</Tooltip>
6171
</ul>
6272
);
6373
}

0 commit comments

Comments
 (0)