Skip to content
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

Add current-week class #178

Merged
merged 5 commits into from
Aug 29, 2017
Merged

Add current-week class #178

merged 5 commits into from
Aug 29, 2017

Conversation

alexwgraves
Copy link

This adds a current-week class to the tr element that contains today's date, to assist with styling for the month's current week. It should behave largely the same as the td_classes_for(day) method – it adds week to each tr and current-week only to the current week of the month.

I've added a couple tests for this to calendar_spec.rb as well.

@excid3
Copy link
Owner

excid3 commented Aug 29, 2017

Great little addition! Thanks @alexwgraves

Copy link
Contributor

@rodrigoargumedo rodrigoargumedo left a comment

Choose a reason for hiding this comment

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

This is pretty great add! I might start using this in my later projects.

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.

None yet

3 participants