Skip to content

Improve calendar time picker styling#133

Open
devin-ai-integration[bot] wants to merge 2 commits intoagentfrom
devin/1773258691-improve-calendar-date-picker
Open

Improve calendar time picker styling#133
devin-ai-integration[bot] wants to merge 2 commits intoagentfrom
devin/1773258691-improve-calendar-date-picker

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Mar 11, 2026

Improve calendar time picker styling with day labels and refined inputs

Summary

Redesigns the time picker controls above the weekly calendar to look more polished and informative:

  • Adds day labels (MON–FRI) above each time picker column so users know which day they're editing
  • Adds a "to" separator between start/end time inputs for clarity
  • Restyles time inputs with a subtle gray background, rounded corners, hover states, and an orange focus ring matching the app's accent color
  • Replaces old .time-picker / .flatpickr-input CSS with a new input.time-input class for input styling; layout uses inline styles (due to Tailwind CSS 4 layer specificity conflicts) while container margins stay in CSS for mobile responsiveness
  • Adds aria-label attributes to each Flatpickr input (e.g. "Mon start time", "Mon end time") for screen reader accessibility

Test updated to use getAllByText since the new day labels duplicate the text react-big-calendar already renders in its column headers.

Before:

before

After:

after

Updates since last revision

Addressed Devin Review feedback (commit 8c24b89):

  • Mobile margins restored: Moved left/right margins from inline styles to .time-controls CSS class with @media (max-width: 767px) override (65px → 10px on mobile)
  • Accessibility improved: Removed aria-hidden from day labels and added aria-label to Flatpickr inputs ("Mon start time", etc.) so screen readers properly associate each input with its weekday; marked "to" separator as aria-hidden since it's decorative

Review & Testing Checklist for Human

  • Visual alignment: Verify time picker columns align properly with calendar day columns across different screen sizes and zoom levels
  • Accessibility verification: Confirm aria-label attributes render correctly on the actual <input> elements (check browser devtools) and that screen readers announce them properly
  • Mobile testing: Test on narrow viewports (< 768px width) to ensure margins adjust correctly and inputs don't overflow

Notes

  • Layout (flexbox, gap, padding) uses inline styles rather than Tailwind utility classes due to a Tailwind CSS 4 @layer specificity issue. Container margins remain in CSS to enable mobile media query overrides. This is a pragmatic workaround but slightly reduces maintainability.
  • Requested by: @rchalamala
  • Devin Session

Open with Devin

- Add day labels (Mon-Fri) above each time picker column
- Add 'to' separator between start and end time inputs
- Restyle time inputs with subtle background, rounded corners, and
  orange focus ring matching the app's accent color
- Align time picker columns horizontally with the calendar grid
- Update test to handle duplicate day text from labels and calendar headers

Co-Authored-By: Rahul Chalamala <rahul@chalamala.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 11, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
caltech-dev 8c24b89 Commit Preview URL

Branch Preview URL
Mar 11 2026, 08:02 PM

devin-ai-integration[bot]

This comment was marked as resolved.

- Move margins to .time-controls CSS class so media queries can override them
- Add mobile margin override (10px) for screens <= 767px
- Remove aria-hidden from day labels so screen readers can see them
- Add aria-label to Flatpickr inputs (e.g. 'Mon start time', 'Mon end time')
- Mark 'to' separator as aria-hidden since it's decorative

Co-Authored-By: Rahul Chalamala <rahul@chalamala.com>
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.

1 participant