Skip to content

Commit 74bc2e3

Browse files
committed
remove unneeded styles for the tooltip anchor and replace with flex item
1 parent 6291992 commit 74bc2e3

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

redisinsight/ui/src/pages/home/components/add-database-screen/components/connection-url/ConnectionUrl.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import React from 'react'
2+
import styled from 'styled-components'
23

34
import { FormField } from 'uiSrc/components/base/forms/FormField'
45
import { TextArea } from 'uiSrc/components/base/inputs'
56
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
67
import { RiTooltip } from 'uiSrc/components'
7-
import { FlexGroup } from 'uiSrc/components/base/layout/flex'
8+
import { FlexGroup, FlexItem } from 'uiSrc/components/base/layout/flex'
89
import { Text } from 'uiSrc/components/base/text'
910

10-
import styles from './styles.module.scss'
11+
const PointerIcon = styled(RiIcon)`
12+
cursor: pointer;
13+
`
1114

1215
export interface Props {
1316
value: string
@@ -17,12 +20,11 @@ export interface Props {
1720
const ConnectionUrl = ({ value, onChange }: Props) => (
1821
<FormField
1922
label={
20-
<FlexGroup gap="s">
23+
<FlexGroup gap="s" align="center">
2124
<Text>Connection URL</Text>
2225
<RiTooltip
2326
title="The following connection URLs are supported:"
2427
className="homePage_tooltip"
25-
anchorClassName={styles.infoTooltipAnchor}
2628
position="right"
2729
content={
2830
<ul className="homePage_toolTipUl">
@@ -41,7 +43,9 @@ const ConnectionUrl = ({ value, onChange }: Props) => (
4143
</ul>
4244
}
4345
>
44-
<RiIcon type="InfoIcon" />
46+
<FlexItem>
47+
<PointerIcon type="InfoIcon" />
48+
</FlexItem>
4549
</RiTooltip>
4650
</FlexGroup>
4751
}

redisinsight/ui/src/pages/home/components/add-database-screen/components/connection-url/styles.module.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)