Skip to content

Fixed UI Issue with Checkbox Selection/Deselection Feedback #70

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
41 changes: 41 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,44 @@ li {
list-style-type: disc !important;
margin-left: 1rem;
}

/* Checkbox and switch visual feedback styles */
[type="checkbox"].filled-in + label {
color: #757575;
transition: color 0.3s ease, font-weight 0.3s ease, background-color 0.3s ease;
padding-left: 35px !important; /* Ensure text doesn't overlap with checkbox */
border-radius: 2px;
}

[type="checkbox"].filled-in:checked + label {
color: #3f51b5;
font-weight: 500;
background-color: rgba(63, 81, 181, 0.03); /* Very subtle highlight */
}

/* Improve spacing for checkbox containers */
.col.s12 input[type="checkbox"] + label {
display: inline-block;
line-height: 21px;
}

/* Special styling for the checkbox that contains a span */
label[for="lastWeekContribution"] {
margin-top: 3px;
padding-right: 5px !important;
}

#noDays {
margin: 0 3px;
}

/* Switch label styling */
.switch label {
color: #757575;
transition: color 0.3s ease, font-weight 0.3s ease;
}

.switch label input[type="checkbox"]:checked ~ span:not(.lever) {
color: #3f51b5;
font-weight: 500;
}