diff --git a/scm-ui/ui-components/src/Icon.tsx b/scm-ui/ui-components/src/Icon.tsx index f610344b3f..b5a0cdb9eb 100644 --- a/scm-ui/ui-components/src/Icon.tsx +++ b/scm-ui/ui-components/src/Icon.tsx @@ -38,6 +38,9 @@ type Props = { alt?: string; }; +/** + * @deprecated + */ const Icon: FC = ({ iconStyle = "fas", color = "secondary", @@ -48,12 +51,12 @@ const Icon: FC = ({ testId, tabIndex, onEnter, - alt = title + alt = title, }) => { return ( event.key === "Enter" && onEnter && onEnter(event)} + onKeyPress={(event) => event.key === "Enter" && onEnter && onEnter(event)} title={title} className={classNames(iconStyle, "fa-fw", "fa-" + name, `has-text-${color}`, className)} tabIndex={tabIndex} diff --git a/scm-ui/ui-components/src/Tooltip.tsx b/scm-ui/ui-components/src/Tooltip.tsx index 2d84ab48e8..2d134a0454 100644 --- a/scm-ui/ui-components/src/Tooltip.tsx +++ b/scm-ui/ui-components/src/Tooltip.tsx @@ -92,7 +92,7 @@ const Arrow = { bottom: ArrowBottom, left: ArrowLeft, right: ArrowRight, - top: ArrowTop + top: ArrowTop, }; const TooltipContainerBase = styled.div<{ multiline?: boolean }>` @@ -136,7 +136,7 @@ const Container = { bottom: TooltipContainerBottom, left: TooltipContainerLeft, right: TooltipContainerRight, - top: TooltipContainerTop + top: TooltipContainerTop, }; type Props = { @@ -150,6 +150,9 @@ type Props = { export type TooltipLocation = "bottom" | "right" | "top" | "left"; +/** + * @deprecated use {@link ui-overlays/Tooltip} instead + */ const Tooltip: FC = ({ className, message, location = "right", multiline, children, id }) => { const [open, setOpen] = useState(false); diff --git a/scm-ui/ui-components/src/buttons/AddButton.tsx b/scm-ui/ui-components/src/buttons/AddButton.tsx index 4c321d9d68..f6eab55773 100644 --- a/scm-ui/ui-components/src/buttons/AddButton.tsx +++ b/scm-ui/ui-components/src/buttons/AddButton.tsx @@ -24,6 +24,9 @@ import React from "react"; import Button, { ButtonProps } from "./Button"; +/** + * @deprecated Use {@link ui-buttons/src/Button.tsx} instead + */ class AddButton extends React.Component { render() { return