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

How to override the dp-material css for ng2-date-picker? #138

Open
alieshghi opened this issue Apr 17, 2021 · 1 comment
Open

How to override the dp-material css for ng2-date-picker? #138

alieshghi opened this issue Apr 17, 2021 · 1 comment

Comments

@alieshghi
Copy link

how we can change the width of date picker when we use recommended theme (dp-material) or adding z-index to that? same question here. this is my code:

dp-date-picker.dp-material .dp-picker-input {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 30px;
  width: 170px;
  font-size: 13px;
  outline: none;
}

but after checking in browser I see :

dp-date-picker.dp-material .dp-picker-input {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 30px;
  width: 252px;
  font-size: 13px;
  outline: none;
}

as you see width not change. and for z index as you mention here I did :

.dp-calendar-nav-container{
             background: #464646 !important;
             color: #ffffff;
             z-index: 99999;
  }

but there is no change. thanks for your nice date picker.

@fingerpich
Copy link
Owner

Please create a demo so you would have better responses in SO and here.

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

No branches or pull requests

2 participants