diff --git a/changes/issue-8394-styling-tooltips-and-modals b/changes/issue-8394-styling-tooltips-and-modals new file mode 100644 index 0000000000..026a10ffb0 --- /dev/null +++ b/changes/issue-8394-styling-tooltips-and-modals @@ -0,0 +1 @@ +* Update styling of tooltips and modals \ No newline at end of file diff --git a/frontend/components/DiskSpaceGraph/_styles.scss b/frontend/components/DiskSpaceGraph/_styles.scss index 4b0e75eb76..c07aeba038 100644 --- a/frontend/components/DiskSpaceGraph/_styles.scss +++ b/frontend/components/DiskSpaceGraph/_styles.scss @@ -15,10 +15,6 @@ &-wrapper { display: inline-block; - - &:hover { - cursor: help; - } } &--green { diff --git a/frontend/components/IconToolTip/IconToolTip.stories.tsx b/frontend/components/IconToolTip/IconToolTip.stories.tsx deleted file mode 100644 index 71da373760..0000000000 --- a/frontend/components/IconToolTip/IconToolTip.stories.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import React from "react"; -import { Meta, Story } from "@storybook/react"; - -import IconToolTip from "."; -import { IIconToolTipProps } from "./IconToolTip"; - -import "../../index.scss"; - -export default { - component: IconToolTip, - title: "Components/IconToolTip", - args: { - text: "This is a tooltip", - isHtml: false, - issue: false, - }, -} as Meta; - -const Template: Story = (props) => ( - -); - -export const Default = Template.bind({}); diff --git a/frontend/components/IconToolTip/IconToolTip.tsx b/frontend/components/IconToolTip/IconToolTip.tsx deleted file mode 100644 index 124def8d59..0000000000 --- a/frontend/components/IconToolTip/IconToolTip.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import React from "react"; -import ReactTooltip from "react-tooltip"; - -export interface IIconToolTipProps { - text: string; - isHtml?: boolean; - issue?: boolean; -} - -// TODO: handle html text better. possibly use 'children' prop for html -const IconToolTip = ({ - text, - isHtml, - issue, -}: IIconToolTipProps): JSX.Element => { - let svgIcon = ( - - - - - ); - - if (issue) { - svgIcon = ( - - - - ); - } - return ( -
- - {svgIcon} - - {/* same colour as $core-fleet-blue */} - -
- ); -}; - -export default IconToolTip; diff --git a/frontend/components/IconToolTip/_styles.scss b/frontend/components/IconToolTip/_styles.scss deleted file mode 100644 index 5198bd1d71..0000000000 --- a/frontend/components/IconToolTip/_styles.scss +++ /dev/null @@ -1,5 +0,0 @@ -.icon-tooltip { - &:hover { - cursor: help; - } -} diff --git a/frontend/components/IconToolTip/index.ts b/frontend/components/IconToolTip/index.ts deleted file mode 100644 index 9a55924c0d..0000000000 --- a/frontend/components/IconToolTip/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./IconToolTip"; diff --git a/frontend/components/Modal/_styles.scss b/frontend/components/Modal/_styles.scss index ae6166c624..b1fb6d233c 100644 --- a/frontend/components/Modal/_styles.scss +++ b/frontend/components/Modal/_styles.scss @@ -66,7 +66,7 @@ &__modal_container { @include position(absolute, 22px null null null); background-color: $core-white; - width: 658px; + width: 570px; padding: $pad-xxlarge; border-radius: 8px; } diff --git a/frontend/components/TableContainer/DataTable/IconCell/IconCell.tsx b/frontend/components/TableContainer/DataTable/IconCell/IconCell.tsx deleted file mode 100644 index 008ff7b390..0000000000 --- a/frontend/components/TableContainer/DataTable/IconCell/IconCell.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react"; - -// @ts-ignore -import FleetIcon from "components/icons/FleetIcon"; - -interface IIconTooltipCellProps { - value: string; -} - -const IconTooltipCell = ({ - value, -}: IIconTooltipCellProps): JSX.Element => { - // The value passed in must be a valid FleetIcon name - return ; -}; - -export default IconTooltipCell; diff --git a/frontend/components/TableContainer/DataTable/IconCell/index.ts b/frontend/components/TableContainer/DataTable/IconCell/index.ts deleted file mode 100644 index 4406703d62..0000000000 --- a/frontend/components/TableContainer/DataTable/IconCell/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./IconCell"; diff --git a/frontend/components/TableContainer/DataTable/IconTooltipCell/IconTooltipCell.tsx b/frontend/components/TableContainer/DataTable/IconTooltipCell/IconTooltipCell.tsx deleted file mode 100644 index 9c16f69731..0000000000 --- a/frontend/components/TableContainer/DataTable/IconTooltipCell/IconTooltipCell.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from "react"; -import { isEmpty } from "lodash"; - -import IconToolTip from "components/IconToolTip"; - -interface IIconTooltipCellProps { - value: string; -} - -const IconTooltipCell = ({ - value, -}: IIconTooltipCellProps): JSX.Element => { - if (isEmpty(value)) { - return <>; - } - - return ; -}; - -export default IconTooltipCell; diff --git a/frontend/components/TableContainer/DataTable/IconTooltipCell/index.ts b/frontend/components/TableContainer/DataTable/IconTooltipCell/index.ts deleted file mode 100644 index 167de3ed7b..0000000000 --- a/frontend/components/TableContainer/DataTable/IconTooltipCell/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./IconTooltipCell"; diff --git a/frontend/components/TableContainer/DataTable/TruncatedTextCell/_styles.scss b/frontend/components/TableContainer/DataTable/TruncatedTextCell/_styles.scss index 827731ad7f..d3b868d87d 100644 --- a/frontend/components/TableContainer/DataTable/TruncatedTextCell/_styles.scss +++ b/frontend/components/TableContainer/DataTable/TruncatedTextCell/_styles.scss @@ -12,10 +12,6 @@ display: inline-block; max-width: 100%; - &:hover { - cursor: help; - } - // Removes secondary unstyled tooltip created by browser &::after { content: ""; diff --git a/frontend/components/TooltipWrapper/_styles.scss b/frontend/components/TooltipWrapper/_styles.scss index 4b70e11d42..81fbdc6e2e 100644 --- a/frontend/components/TooltipWrapper/_styles.scss +++ b/frontend/components/TooltipWrapper/_styles.scss @@ -1,7 +1,6 @@ .component__tooltip-wrapper { display: inline-flex; position: relative; - cursor: help; &:hover { .component__tooltip-wrapper__tip-text { diff --git a/frontend/pages/admin/UserManagementPage/_styles.scss b/frontend/pages/admin/UserManagementPage/_styles.scss index 02b62a2611..46a5063044 100644 --- a/frontend/pages/admin/UserManagementPage/_styles.scss +++ b/frontend/pages/admin/UserManagementPage/_styles.scss @@ -1,5 +1,4 @@ .user-management { - &__page-description { font-size: $x-small; color: $core-fleet-black; @@ -9,9 +8,4 @@ &__sandbox-demo-message { margin-top: 3.5rem; } - - .Select-menu-outer { - position: absolute; - left: -50px !important; // Using !important to override react select styling - } } diff --git a/frontend/styles/global/_global.scss b/frontend/styles/global/_global.scss index 0cc185b7b6..213b56efea 100644 --- a/frontend/styles/global/_global.scss +++ b/frontend/styles/global/_global.scss @@ -23,19 +23,6 @@ body { opacity: 1; // Overrides 0.9 default opacity text-align: center; } - - .tooltip { - &:hover { - cursor: help; - } - - .button--disabled, - .fleet-checkbox__tick--disabled { - &:hover { - cursor: help; - } - } - } } h1,