Skip to content

Commit ee141e3

Browse files
authored
fix(notifications): UI updates for notification integrations feature (#431)
* chore(input): update font size for tiny size * chore(colors): update color for placeholder * v2.8.8
1 parent d60035b commit ee141e3

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": [

Diff for: src/components/input/input.js

+2-1
Original file line numberDiff line numberDiff 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
/>

Diff for: src/components/input/styled.js

+3-3
Original file line numberDiff line numberDiff 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
`

Diff for: src/theme/default/colors.js

+1-1
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)