Skip to content

Remove calendar month grid padding and fix outline color for theme support#37

Merged
danielchalmers merged 3 commits intomainfrom
copilot/update-calendar-ui-margins
Oct 30, 2025
Merged

Remove calendar month grid padding and fix outline color for theme support#37
danielchalmers merged 3 commits intomainfrom
copilot/update-calendar-ui-margins

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

Tightens calendar visual density by eliminating padding around the month grid and improves accessibility by fixing the current day outline to support both light and dark themes.

Changes

  • Month grid padding: 12px0 (removed entirely)
  • Current day outline color: #3A2F36var(--mud-palette-text-primary) (theme-aware)

Modified CalendarMonth.razor.css:

::deep .calendar-month-grid {
  padding: 0;  /* was 12px */
}

::deep .calendar-day-current {
  outline: 2px dashed var(--mud-palette-text-primary);  /* was #3A2F36 */
}

The outline now uses a CSS variable that adapts to the current theme, ensuring visibility in both light and dark modes.

Original prompt

Calendar UI tweaks: Reduce the gap/margin around each square by half and remove the inner month card padding entirely


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
Copilot AI changed the title [WIP] Update calendar UI to reduce gaps and padding Reduce calendar UI spacing: halve day margins and remove month grid padding Oct 30, 2025
Copilot AI requested a review from danielchalmers October 30, 2025 06:34
@danielchalmers danielchalmers marked this pull request as ready for review October 30, 2025 06:36
@danielchalmers
Copy link
Owner

@copilot Keep the zero padding but put the margin back to 2px. Fix the outline color so it uses var(--mud-palette-text-primary) which means it will be visible on both dark and light modes

Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 30, 2025

@copilot Keep the zero padding but put the margin back to 2px. Fix the outline color so it uses var(--mud-palette-text-primary) which means it will be visible on both dark and light modes

Done in a281c97. The padding remains at 0, margin is back to 2px, and the outline now uses var(--mud-palette-text-primary) for proper visibility in both light and dark modes.

Copilot AI changed the title Reduce calendar UI spacing: halve day margins and remove month grid padding Remove calendar month grid padding and fix outline color for theme support Oct 30, 2025
@danielchalmers danielchalmers merged commit 2be91d9 into main Oct 30, 2025
@danielchalmers danielchalmers deleted the copilot/update-calendar-ui-margins branch October 30, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants