diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index eb65f650..beb568ca 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -1,5 +1,5 @@ /* -Copyright 2023 New Vector Ltd +Copyright 2023-2024 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -36,10 +36,6 @@ type TooltipProps = { * The tooltip caption */ caption?: string; - /** - * @deprecated replaced by `caption` - */ - shortcut?: string; /** * The side where the tooltip is rendered * @default bottom @@ -96,7 +92,6 @@ export const Tooltip = ({ children, label, caption, - shortcut, side = "bottom", align = "center", onEscapeKeyDown, @@ -128,9 +123,9 @@ export const Tooltip = ({ using the text color secondary on a solid dark background. This is temporary and should only remain until we figure out the approach to on-solid tokens */} - {(caption || shortcut) && ( + {caption && ( - {caption ?? shortcut} + {caption} )}