File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @netdata/netdata-ui" ,
3
- "version" : " 2.8.7 " ,
3
+ "version" : " 2.8.8 " ,
4
4
"description" : " netdata UI kit" ,
5
5
"main" : " ./lib/index.js" ,
6
6
"files" : [
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export const TextInput = ({
105
105
< StyledContainer className = { className } >
106
106
< StyledLabel disabled = { disabled } >
107
107
{ label && (
108
- < LabelRow >
108
+ < LabelRow size = { size } >
109
109
< span > { label } </ span >
110
110
</ LabelRow >
111
111
) }
@@ -128,6 +128,7 @@ export const TextInput = ({
128
128
iconRight = { iconRight }
129
129
type = "text"
130
130
value = { value }
131
+ size = { size }
131
132
ref = { inputRef }
132
133
{ ...props }
133
134
/>
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ export const StyledInput = styled.input.attrs({ round: true })`
29
29
flex-grow: 0;
30
30
${ ( { iconLeft } ) => iconLeft && "padding-left: 0" } ;
31
31
${ ( { iconRight } ) => iconRight && "padding-right: 0" } ;
32
- font-size: 14px;
32
+ font-size: ${ ( { size } ) => ( size === "tiny" ? "12px" : " 14px" ) } ;
33
33
line-height: 18px;
34
34
color: ${ ( { disabled } ) => ( disabled ? getColor ( "placeholder" ) : getColor ( "textDescription" ) ) } ;
35
35
background: ${ ( { disabled } ) =>
36
36
disabled ? getColor ( "mainBackgroundDisabled" ) : getColor ( "mainBackground" ) } ;
37
37
38
38
&::placeholder {
39
- font-size: 14px;
39
+ font-size: ${ ( { size } ) => ( size === "tiny" ? "12px" : " 14px" ) } ;
40
40
line-height: 18px;
41
41
color: ${ getColor ( "placeholder" ) } ;
42
42
opacity: 1;
@@ -58,7 +58,7 @@ export const LabelRow = styled(Flex).attrs({
58
58
} ) `
59
59
font-style: normal;
60
60
font-weight: bold;
61
- font-size: 14px;
61
+ font-size: ${ ( { size } ) => ( size === "tiny" ? "12px" : " 14px" ) } ;
62
62
line-height: 18px;
63
63
margin-bottom: 4px;
64
64
`
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const appColors = {
48
48
sectionHeaderBackground : rawColors . neutral . limedSpruce ,
49
49
sectionTitle : rawColors . neutral . bluebayoux ,
50
50
sectionDescription : rawColors . neutral . regentgrey ,
51
- placeholder : rawColors . neutral . iron ,
51
+ placeholder : rawColors . neutral . regentgrey ,
52
52
key : rawColors . neutral . regentgrey ,
53
53
panel : rawColors . neutral . limedSpruce ,
54
54
panelBg : rawColors . neutral . blackhaze ,
You can’t perform that action at this time.
0 commit comments