File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @netdata/netdata-ui" ,
3- "version" : " 2.8.7 " ,
3+ "version" : " 2.8.8 " ,
44 "description" : " netdata UI kit" ,
55 "main" : " ./lib/index.js" ,
66 "files" : [
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export const TextInput = ({
105105 < StyledContainer className = { className } >
106106 < StyledLabel disabled = { disabled } >
107107 { label && (
108- < LabelRow >
108+ < LabelRow size = { size } >
109109 < span > { label } </ span >
110110 </ LabelRow >
111111 ) }
@@ -128,6 +128,7 @@ export const TextInput = ({
128128 iconRight = { iconRight }
129129 type = "text"
130130 value = { value }
131+ size = { size }
131132 ref = { inputRef }
132133 { ...props }
133134 />
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ export const StyledInput = styled.input.attrs({ round: true })`
2929 flex-grow: 0;
3030 ${ ( { iconLeft } ) => iconLeft && "padding-left: 0" } ;
3131 ${ ( { iconRight } ) => iconRight && "padding-right: 0" } ;
32- font-size: 14px;
32+ font-size: ${ ( { size } ) => ( size === "tiny" ? "12px" : " 14px" ) } ;
3333 line-height: 18px;
3434 color: ${ ( { disabled } ) => ( disabled ? getColor ( "placeholder" ) : getColor ( "textDescription" ) ) } ;
3535 background: ${ ( { disabled } ) =>
3636 disabled ? getColor ( "mainBackgroundDisabled" ) : getColor ( "mainBackground" ) } ;
3737
3838 &::placeholder {
39- font-size: 14px;
39+ font-size: ${ ( { size } ) => ( size === "tiny" ? "12px" : " 14px" ) } ;
4040 line-height: 18px;
4141 color: ${ getColor ( "placeholder" ) } ;
4242 opacity: 1;
@@ -58,7 +58,7 @@ export const LabelRow = styled(Flex).attrs({
5858} ) `
5959 font-style: normal;
6060 font-weight: bold;
61- font-size: 14px;
61+ font-size: ${ ( { size } ) => ( size === "tiny" ? "12px" : " 14px" ) } ;
6262 line-height: 18px;
6363 margin-bottom: 4px;
6464`
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const appColors = {
4848 sectionHeaderBackground : rawColors . neutral . limedSpruce ,
4949 sectionTitle : rawColors . neutral . bluebayoux ,
5050 sectionDescription : rawColors . neutral . regentgrey ,
51- placeholder : rawColors . neutral . iron ,
51+ placeholder : rawColors . neutral . regentgrey ,
5252 key : rawColors . neutral . regentgrey ,
5353 panel : rawColors . neutral . limedSpruce ,
5454 panelBg : rawColors . neutral . blackhaze ,
You can’t perform that action at this time.
0 commit comments