Skip to content
Discussion options

You must be logged in to vote

@ayuhito thanks for trying out the new version! Yes the way the navigation works changed. Instead being rendered for each month (which was causing any sort of workaround to align the buttons), the navigation is rendered on top of the months.

You can add this CSS to restyle it:

.rdp-nav {
  left: 0;
  right: 0;
}

.rdp-button_next {
  position: absolute;
  right: 0;
}

.rdp-button_prev {
  position: absolute;
  left: 0;
}

.rdp-month_caption, .rdp-caption_label {
  justify-content: center;
}

(not sure if it works perfectly, but you got the idea).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ayuhito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2303 on July 24, 2024 12:08.