This pull request includes several changes to improve the user interface and functionality of tooltips in the frontend components. The most important changes include modifying the behavior of tooltips to avoid collisions, updating the styling of theme buttons, and ensuring consistent tooltip behavior across different components.
src/frontend/src/components/ui/dialog.tsx: Updated the ShadTooltip within the DialogContent component to use the avoidCollisions prop and changed the tooltip position to bottom.
This pull request includes several changes to improve the user interface and functionality of tooltips in the frontend components. The most important changes include modifying the behavior of tooltips to avoid collisions, updating the styling of theme buttons, and ensuring consistent tooltip behavior across different components.
Improvements to tooltip functionality:
src/frontend/src/components/shadTooltipComponent/index.tsx
: Added anavoidCollisions
prop to theShadTooltip
component, allowing it to be set dynamically. [1] [2]src/frontend/src/types/components/index.ts
: Updated theShadToolTipType
type to include theavoidCollisions
property.Styling updates:
src/frontend/src/components/appHeaderComponent/components/ThemeButtons/index.tsx
: Modified the hover styles for the theme buttons to improve visual feedback.Consistent tooltip behavior:
src/frontend/src/components/ui/dialog.tsx
: Updated theShadTooltip
within theDialogContent
component to use theavoidCollisions
prop and changed the tooltip position tobottom
.src/frontend/src/modals/IOModal/newModal.tsx
: Ensured theShadTooltip
in theIOModal
component uses theavoidCollisions
prop and positioned the tooltip at thebottom
.