Skip to content

Commit 4113bc5

Browse files
committed
Added black as the new default TextColor for the input shape
1 parent 7278aa6 commit 4113bc5

File tree

5 files changed

+43
-2
lines changed

5 files changed

+43
-2
lines changed

src/common/components/mock-components/front-components/input-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const InputShape = forwardRef<any, ShapeProps>((props, ref) => {
8383
disabled
8484
? DISABLED_COLOR_VALUES.DEFAULT_TEXT_COLOR
8585
: isPlaceholder
86-
? INPUT_SHAPE.DEFAULT_FILL_TEXT
86+
? '#8c8c8c'
8787
: textColor
8888
}
8989
align="left"

src/common/components/mock-components/front-components/shape.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const DEFAULT_FONT_SIZE = 16;
88
const DEFAULT_FILL_TEXT = '#000000';
99
const DEFAULT_PADDING = 10;
1010
const DEFAULT_LINE_HEIGHT = 1.25;
11-
const DEFAULT_FILL_TEXT_INPUT = '#8c8c8c';
11+
const DEFAULT_FILL_TEXT_INPUT = '#000000';
1212
const DEFAULT_FONT_SIZE_INPUT = 15;
1313
const DEFAULT_TEXT_WIDTH = 165;
1414
const DEFAULT_TEXT_HEIGHT = 38;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './password.component';
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.container {
2+
display: flex;
3+
gap: 0.5em;
4+
align-items: center;
5+
padding: var(--space-xs) var(--space-md);
6+
border-bottom: 1px solid var(--primary-300);
7+
}
8+
9+
.container :first-child {
10+
flex: 1;
11+
}
12+
13+
.checkbox {
14+
width: var(--space-md);
15+
height: var(--space-md);
16+
cursor: pointer;
17+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import classes from './password.component.module.css';
2+
3+
interface Props {
4+
label: string;
5+
isPassword: boolean;
6+
onChange: (isPassword: boolean) => void;
7+
}
8+
9+
export const Password: React.FC<Props> = props => {
10+
const { label, isPassword, onChange } = props;
11+
12+
return (
13+
<div className={classes.container}>
14+
<p>{label}</p>
15+
<input
16+
type="checkbox"
17+
checked={isPassword}
18+
onChange={() => onChange(!isPassword)}
19+
className={classes.checkbox}
20+
/>
21+
</div>
22+
);
23+
};

0 commit comments

Comments
 (0)