File tree 2 files changed +8
-12
lines changed
packages/react-utils/src/components/KeyValuePairs
2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 3
3
grid-template-columns : repeat (3 , minmax (32px , 1fr ));
4
4
}
5
5
6
+ .singleKeyValue-pair__value ,
6
7
.keyValueGrid-pair__value {
7
- color : # 000 ;
8
+ color : rgba ( 0 , 0 , 0 , 0.85 ) ;
8
9
}
9
10
11
+ .singleKeyValue-pair__label ,
10
12
.keyValueGrid-pair__label {
11
- color : # 777 ;
13
+ color : rgba ( 0 , 0 , 0 , 0.65 ) ;
12
14
}
13
15
14
16
.keyValueGrid-pair__value ,
23
25
dl .keyValueGrid ,
24
26
dl .singleKeyValue {
25
27
margin-bottom : 0 ;
26
- line-height : 1.2em ;
28
+ line-height : 1.4em ;
29
+ font-weight : 400 ;
27
30
}
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { Typography } from 'antd' ;
3
2
import './index.css' ;
4
3
5
- const { Text } = Typography ;
6
-
7
4
type KeyValuePairs = Record < string , string | number | boolean | JSX . Element > ;
8
5
9
6
export const KeyValueGrid = ( props : KeyValuePairs ) => {
@@ -34,12 +31,8 @@ export const SingleKeyNestedValue = (props: KeyValuePairs) => {
34
31
return (
35
32
< dl className = "singleKeyValue" >
36
33
< 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 >
43
36
</ div >
44
37
</ dl >
45
38
) ;
You can’t perform that action at this time.
0 commit comments