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 year class for year picker - Feature #2341 #2344

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

PoltP
Copy link
Contributor

@PoltP PoltP commented Aug 19, 2020

Feature for #2341 I've noticed that this behavior wasn't implemented.
I've added logic to highlight current year.
I do not add specific class postfix and used --today postfix similar to days (react-datepicker__year-text--today).
Corresponding behavior has been covered with a test.

Maybe #2341 needs to add a new class to highlight current year? As for me, it is comfortable to use --today postfix.

@codecov
Copy link

codecov bot commented Aug 19, 2020

Codecov Report

Merging #2344 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2344   +/-   ##
=======================================
  Coverage   92.10%   92.10%           
=======================================
  Files          20       20           
  Lines        1254     1254           
  Branches      332      332           
=======================================
  Hits         1155     1155           
  Misses         40       40           
  Partials       59       59           
Impacted Files Coverage Δ
src/year.jsx 90.90% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90fb8de...560eca6. Read the comment docs.

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