Skip to content

Styles from .scss file doesn't apply. #1950

Discussion options

You must be logged in to vote

I apologize that I could not provide CodeSandbox. The fact is that the .scss import works fine in it.

I haven’t fully figured it out, but I’ll still leave the solution in our project. Apparently it's all about our frontend configuration
In our project we managed to do this:

We add the default library styles to the DatePicker.scss file. That is, just Crtl+C from lib & Ctrl+V.

.rdp {
  --rdp-cell-size: 40px; /* Size of the day cells. */
  --rdp-caption-font-size: 18px; /* Font size for the caption labels. */
  --rdp-accent-color: #0000ff; /* Accent color for the background of selected days. */
  --rdp-background-color: #e7edff; /* Background color for the hovered/focused elements. */
  --rd…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@is-paranoia
Comment options

Answer selected by is-paranoia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants