diff --git a/src/components/EnvironmentVariables/index.js b/src/components/EnvironmentVariables/index.js index f1332e87..1c65e9cd 100644 --- a/src/components/EnvironmentVariables/index.js +++ b/src/components/EnvironmentVariables/index.js @@ -7,6 +7,7 @@ import Image from 'next/image'; import { LoadingOutlined } from '@ant-design/icons'; import { useLazyQuery } from '@apollo/react-hooks'; import { Tag } from 'antd'; +import { Tooltip } from 'antd'; import 'bootstrap/dist/css/bootstrap.min.css'; import Alert from 'components/Alert'; import Btn from 'components/Button'; @@ -305,49 +306,53 @@ const EnvironmentVariables = ({ environment, onVariableAdded }) => {
- + + +
- + + +
diff --git a/src/components/ProjectVariables/index.js b/src/components/ProjectVariables/index.js index 29db26fd..4cd18cdb 100644 --- a/src/components/ProjectVariables/index.js +++ b/src/components/ProjectVariables/index.js @@ -7,6 +7,7 @@ import Image from 'next/image'; import { LoadingOutlined } from '@ant-design/icons'; import { useLazyQuery } from '@apollo/react-hooks'; import { Tag } from 'antd'; +import { Tooltip } from 'antd'; import 'bootstrap/dist/css/bootstrap.min.css'; import Alert from 'components/Alert'; import Btn from 'components/Button'; @@ -218,47 +219,51 @@ const ProjectVariables = ({ project, onVariableAdded }) => {
- + + +
- + + +
diff --git a/src/layouts/GlobalStyles/index.tsx b/src/layouts/GlobalStyles/index.tsx index 7a6e5865..815bc326 100644 --- a/src/layouts/GlobalStyles/index.tsx +++ b/src/layouts/GlobalStyles/index.tsx @@ -42,7 +42,15 @@ body { color: ${props => (props.theme.colorScheme === 'dark' ? '#000' : '#fff')}; background: ${props => (props.theme.colorScheme === 'dark' ? '#fff' : '#000')}; } - +} +.componentTooltip { + .ant-tooltip-arrow:before{ + background: ${props => (props.theme.colorScheme === 'dark' ? '#fff' : '#000')}; + } + .ant-tooltip-content .ant-tooltip-inner{ + color: ${props => (props.theme.colorScheme === 'dark' ? '#000' : '#fff')}; + background: ${props => (props.theme.colorScheme === 'dark' ? '#fff' : '#000')}; + } } #__next {