Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ a { color: var(--accent); text-decoration: none; }
animation: fadeUp 0.22s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator {
cursor: pointer;
transition: filter 0.2s ease;
}

/* Dark theme */
:root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator {
filter: invert(1);
}

/* Light theme */
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
filter: none;
.navbar-link:hover {
color: var(--accent) !important;
}
Comment on lines +66 to +81

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Scope the date-picker styles to the intended controls.

If only the contributor profile date inputs need this behavior, replace the global input[type="date"] selector with a shared class such as .date-input. The current selector changes every date input in the application and can affect unrelated forms.

Proposed scope change
-input[type="date"]::-webkit-calendar-picker-indicator {
+.date-input::-webkit-calendar-picker-indicator {
   cursor: pointer;
   transition: filter 0.2s ease;
 }

 :root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator {
   filter: invert(1);
 }

 [data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
   filter: none;
 }

Apply the same .date-input selector to the two date inputs in src/pages/ContributorProfilePage.jsx.

As per path instructions, review CSS against Google CSS style guidance and use consistent class and ID naming conventions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/styles/global.css` around lines 66 - 79, Scope the date-picker rules
around the shared .date-input class instead of the global input[type="date"]
selector, including the cursor, transition, and both theme-specific indicator
rules in global.css. Add the same class to both date inputs in
ContributorProfilePage.jsx, using the existing naming convention and preserving
the current light/dark behavior.

Source: Path instructions

Loading