-
Notifications
You must be signed in to change notification settings - Fork 16
Improved homepage heading and auth UI #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -48,7 +48,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>( | |||||||||
| <label | ||||||||||
| htmlFor={name} | ||||||||||
| className="text-xs font-semibold uppercase tracking-wider" | ||||||||||
| style={{ color: theme.text.secondary }} | ||||||||||
| style={{ color: "black"}} | ||||||||||
| > | ||||||||||
| {label} | ||||||||||
| </label> | ||||||||||
|
|
@@ -57,7 +57,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>( | |||||||||
| <div | ||||||||||
| className="flex items-center gap-2 rounded-lg px-3 py-2 border transition-all duration-150" | ||||||||||
| style={{ | ||||||||||
| backgroundColor: theme.bg.surface, | ||||||||||
| backgroundColor: "black", | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||||
| borderColor: error ? theme.danger.default : theme.border.default, | ||||||||||
| boxShadow: error ? `0 0 0 3px ${theme.danger.subtle}` : undefined, | ||||||||||
| }} | ||||||||||
|
|
@@ -79,8 +79,8 @@ export const Input = forwardRef<HTMLInputElement, InputProps>( | |||||||||
| required={required} | ||||||||||
| onKeyDown={onKeyDown} | ||||||||||
| onChange={(e) => onChange?.(name, e.target.value)} | ||||||||||
| className={`flex-1 bg-transparent outline-none text-sm ${inputClassName}`} | ||||||||||
| style={{ color: theme.text.primary }} | ||||||||||
| className={`flex-1 bg-black text-white outline-none text-sm ${inputClassName}`} | ||||||||||
| style={{ color: "white" }} | ||||||||||
|
Comment on lines
+82
to
+83
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding
Suggested change
|
||||||||||
| /> | ||||||||||
|
|
||||||||||
| {rightIcon && ( | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -93,9 +93,9 @@ const LoginPage = () => { | |||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| <Input | ||||||||||||||||||||||||||||||
| name="password" | ||||||||||||||||||||||||||||||
| className="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" | ||||||||||||||||||||||||||||||
| className="w-full px-3 py-2 border border-gray-300 rounded-md text-black bg-white placeholder:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" | ||||||||||||||||||||||||||||||
| placeholder="Enter your password" | ||||||||||||||||||||||||||||||
| type="password" | ||||||||||||||||||||||||||||||
| type="text" | ||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||
|
Comment on lines
94
to
99
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing the password input type to
Suggested change
|
||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||
| <button | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoding the color to
'black'inside a reusable component bypasses the application's theme configuration (theme.text.secondary). This breaks dark mode support and consistency across the app. If a specific color is needed for a particular instance, it should be passed via props or handled through Tailwind classes rather than hardcoded in the base component.