diff --git a/gui/src/components/gui/HeaderButtonWithToolTip.tsx b/gui/src/components/gui/HeaderButtonWithToolTip.tsx index 602581e4362..bc6a4c717b6 100644 --- a/gui/src/components/gui/HeaderButtonWithToolTip.tsx +++ b/gui/src/components/gui/HeaderButtonWithToolTip.tsx @@ -18,6 +18,7 @@ interface HeaderButtonWithToolTipProps { hoverBackgroundColor?: string; tooltipPlacement?: PlacesType; testId?: string; + ariaLabel?: string; } const HeaderButtonWithToolTip = React.forwardRef< @@ -41,6 +42,7 @@ const HeaderButtonWithToolTip = React.forwardRef< style={props.style} ref={ref} tabIndex={props.tabIndex} + aria-label={props.ariaLabel ?? props.text} > {props.children} diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 00e04efd1f4..3b891c04edd 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -46,10 +46,9 @@ import { ToolCallDiv } from "./ToolCallDiv"; import { useStore } from "react-redux"; import FeedbackDialog from "../../components/dialogs/FeedbackDialog"; -import { DeprecationBanner } from "../../components/DeprecationBanner"; import { FatalErrorIndicator } from "../../components/config/FatalErrorNotice"; +import { DeprecationBanner } from "../../components/DeprecationBanner"; import InlineErrorMessage from "../../components/mainInput/InlineErrorMessage"; -import { resolveEditorContent } from "../../components/mainInput/TipTapEditor/utils/resolveEditorContent"; import { setDialogMessage, setShowDialog } from "../../redux/slices/uiSlice"; import { RootState } from "../../redux/store"; import { cancelStream } from "../../redux/thunks/cancelStream"; @@ -386,6 +385,9 @@ export function Chat() { 0 ? "min-h-0 flex-1 overflow-y-scroll" : "shrink-0"}`} > @@ -395,6 +397,8 @@ export function Chat() { .map((item, index: number) => (