Skip to content

Commit

Permalink
Added black as the new default TextColor for the input shape
Browse files Browse the repository at this point in the history
  • Loading branch information
iria-carballo committed Feb 23, 2025
1 parent 7278aa6 commit 4113bc5
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const InputShape = forwardRef<any, ShapeProps>((props, ref) => {
disabled
? DISABLED_COLOR_VALUES.DEFAULT_TEXT_COLOR
: isPlaceholder
? INPUT_SHAPE.DEFAULT_FILL_TEXT
? '#8c8c8c'
: textColor
}
align="left"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const DEFAULT_FONT_SIZE = 16;
const DEFAULT_FILL_TEXT = '#000000';
const DEFAULT_PADDING = 10;
const DEFAULT_LINE_HEIGHT = 1.25;
const DEFAULT_FILL_TEXT_INPUT = '#8c8c8c';
const DEFAULT_FILL_TEXT_INPUT = '#000000';
const DEFAULT_FONT_SIZE_INPUT = 15;
const DEFAULT_TEXT_WIDTH = 165;
const DEFAULT_TEXT_HEIGHT = 38;
Expand Down
1 change: 1 addition & 0 deletions src/pods/properties/components/password/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './password.component';
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.container {
display: flex;
gap: 0.5em;
align-items: center;
padding: var(--space-xs) var(--space-md);
border-bottom: 1px solid var(--primary-300);
}

.container :first-child {
flex: 1;
}

.checkbox {
width: var(--space-md);
height: var(--space-md);
cursor: pointer;
}
23 changes: 23 additions & 0 deletions src/pods/properties/components/password/password.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import classes from './password.component.module.css';

interface Props {
label: string;
isPassword: boolean;
onChange: (isPassword: boolean) => void;
}

export const Password: React.FC<Props> = props => {
const { label, isPassword, onChange } = props;

return (
<div className={classes.container}>
<p>{label}</p>
<input
type="checkbox"
checked={isPassword}
onChange={() => onChange(!isPassword)}
className={classes.checkbox}
/>
</div>
);
};

0 comments on commit 4113bc5

Please sign in to comment.