From 7214f061add745ad85d3dba2e511533ef767eef6 Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 5 Jun 2024 09:39:50 +0200 Subject: [PATCH] Use @mui/material's Tooltip instead of `title` attributes. Fixes https://github.com/opencast/opencast-admin-interface/issues/574 --- src/components/Header.tsx | 120 ++++++++++-------- .../partials/ThemesActionsCell.tsx | 23 ++-- .../events/partials/EventActionCell.tsx | 104 ++++++++------- .../events/partials/EventsDateCell.tsx | 16 ++- .../events/partials/EventsLocationCell.tsx | 16 ++- .../events/partials/EventsPresentersCell.tsx | 17 +-- .../events/partials/EventsSeriesCell.tsx | 16 ++- .../events/partials/EventsStatusCell.tsx | 16 ++- .../partials/EventsTechnicalDateCell.tsx | 16 ++- .../EventDetailsWorkflowTab.tsx | 79 ++++++------ .../events/partials/SeriesActionsCell.tsx | 25 ++-- .../events/partials/SeriesTitleCell.tsx | 18 +-- .../partials/RecordingsActionCell.tsx | 23 ++-- .../partials/RecordingsNameCell.tsx | 18 +-- src/components/shared/MainNav.tsx | 106 +++++++++------- src/components/shared/Stats.tsx | 38 +++--- src/components/shared/TableFilterProfiles.tsx | 38 +++--- src/components/shared/TableFilters.tsx | 49 +++---- src/components/shared/Tooltip.tsx | 35 +++++ .../systems/partials/ServicesActionsCell.tsx | 12 +- .../users/partials/AclsActionsCell.tsx | 23 ++-- .../users/partials/GroupsActionsCell.tsx | 23 ++-- .../users/partials/UsersActionsCell.tsx | 23 ++-- .../users/partials/wizard/NewUserWizard.tsx | 16 ++- src/styles/components/_components-config.scss | 1 + src/styles/components/_tooltips.scss | 5 + 26 files changed, 502 insertions(+), 374 deletions(-) create mode 100644 src/components/shared/Tooltip.tsx create mode 100644 src/styles/components/_tooltips.scss diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 09c3b2f17a..314d211a3c 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -22,6 +22,7 @@ import { useHotkeys } from "react-hotkeys-hook"; import { useAppDispatch, useAppSelector } from "../store"; import { HealthStatus, fetchHealthStatus } from "../slices/healthSlice"; import { UserInfoState } from "../slices/userInfoSlice"; +import { Tooltip } from "./shared/Tooltip"; // Get code, flag and name of the current language const currentLanguage = getCurrentLanguageInformation(); @@ -161,13 +162,14 @@ const Header = ({