Skip to content

Commit 6d9331d

Browse files
solved issues for text visibility
1 parent a0324ee commit 6d9331d

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

Frontend/src/components/ui/input.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
77
<input
88
type={type}
99
className={cn(
10-
// BASE STYLES
11-
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background",
12-
// TEXT VISIBILITY FIX
13-
"text-foreground placeholder:text-muted-foreground",
14-
// FILE INPUT STYLES
15-
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
16-
// INTERACTION STYLES
17-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
18-
// DISABLED STATES
19-
"disabled:cursor-not-allowed disabled:opacity-50",
10+
2011
className
2112
)}
2213
ref={ref}

Frontend/src/index.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,7 @@
117117
body {
118118
@apply bg-background text-foreground;
119119
}
120-
/* FIX FOR ISSUE #272: Ensuring input text is visible */
121-
input, textarea, select {
122-
@apply bg-background text-foreground border-input px-3 py-2 ring-offset-background;
123-
color: var(--foreground); /* Forces text color to use project foreground */
124-
}
125-
126-
input::placeholder {
127-
@apply text-muted-foreground;
128-
}
129-
}
120+
130121

131122
/* Custom Animations */
132123
@keyframes gradient {

0 commit comments

Comments
 (0)