Skip to content

Commit 8816cf4

Browse files
committed
Tweak style for key value pair data descriptions
1 parent f6a20a8 commit 8816cf4

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

packages/react-utils/src/components/KeyValuePairs/index.css

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
grid-template-columns: repeat(3, minmax(32px, 1fr));
44
}
55

6+
.singleKeyValue-pair__value,
67
.keyValueGrid-pair__value {
7-
color: #000;
8+
color: rgba(0, 0, 0, 0.85);
89
}
910

11+
.singleKeyValue-pair__label,
1012
.keyValueGrid-pair__label {
11-
color: #777;
13+
color: rgba(0, 0, 0, 0.65);
1214
}
1315

1416
.keyValueGrid-pair__value,
@@ -23,5 +25,6 @@
2325
dl.keyValueGrid,
2426
dl.singleKeyValue {
2527
margin-bottom: 0;
26-
line-height: 1.2em;
28+
line-height: 1.4em;
29+
font-weight: 400;
2730
}

packages/react-utils/src/components/KeyValuePairs/index.tsx

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import React from 'react';
2-
import { Typography } from 'antd';
32
import './index.css';
43

5-
const { Text } = Typography;
6-
74
type KeyValuePairs = Record<string, string | number | boolean | JSX.Element>;
85

96
export const KeyValueGrid = (props: KeyValuePairs) => {
@@ -34,12 +31,8 @@ export const SingleKeyNestedValue = (props: KeyValuePairs) => {
3431
return (
3532
<dl className="singleKeyValue">
3633
<div className="singleKeyValue-pair">
37-
<dt className="singleKeyValue-pair__label">
38-
<Text type={'secondary'}>{key}</Text>
39-
</dt>
40-
<dd className="singleKeyValue-pair__value">
41-
<Text>{value}</Text>
42-
</dd>
34+
<dt className="singleKeyValue-pair__label">{key}</dt>
35+
<dd className="singleKeyValue-pair__value">{value}</dd>
4336
</div>
4437
</dl>
4538
);

0 commit comments

Comments
 (0)