Skip to content

Commit 7da39c8

Browse files
#RI-4061 - update styles
1 parent 9a14f96 commit 7da39c8

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

redisinsight/ui/src/pages/browser/components/add-key/AddKeyReJSON/AddKeyReJSON.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { useDispatch, useSelector } from 'react-redux'
33
import { useParams } from 'react-router-dom'
44
import {
55
EuiButton,
6+
EuiButtonEmpty,
67
EuiFormRow,
7-
EuiIcon,
88
EuiText,
99
EuiTextColor,
1010
EuiForm,
@@ -110,8 +110,12 @@ const AddKeyReJSON = (props: Props) => {
110110
<EuiFlexGroup justifyContent="flexEnd">
111111
<EuiFlexItem grow={false}>
112112
<label htmlFor="upload-input-file" className={styles.uploadBtn}>
113-
<EuiIcon className={styles.uploadIcon} type="folderOpen" />
114-
<EuiText className={styles.label}>Upload</EuiText>
113+
<EuiButtonEmpty
114+
iconType="folderOpen"
115+
className={styles.emptyBtn}
116+
>
117+
<EuiText className={styles.label}>Upload</EuiText>
118+
</EuiButtonEmpty>
115119
<input
116120
type="file"
117121
id="upload-input-file"

redisinsight/ui/src/pages/browser/components/add-key/AddKeyReJSON/styles.module.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,23 @@
44

55
.uploadBtn {
66
display: flex;
7-
margin-top: 20px;
7+
margin-top: 7px;
88
cursor: pointer;
99
}
1010

1111
.uploadIcon {
1212
margin-right: 4px;
1313
}
1414

15-
.label {
15+
.emptyBtn:global(.euiButtonEmpty) {
16+
height: 22px;
17+
}
18+
19+
.emptyBtn:global(.euiButtonEmpty .euiButtonEmpty__content) {
20+
padding: 0 12px;
21+
}
22+
23+
:global(.euiButtonEmpty.euiButtonEmpty--primary).emptyBtn .label {
1624
color: var(--inputTextColor) !important;
1725
line-height: 16px !important;
1826
font-weight: 400 !important;

0 commit comments

Comments
 (0)