0

Im trying to override the margin-top style of react-datepicker-popper:

.react-datepicker-popper[data-placement^="bottom"] {
    margin-top: 10px;

So in my main.scss file i'm writing

.react-datepicker-popper[data-placement^="bottom"] {
  margin-top: -10px !important;
}

but it does not seem to work. Any ideas why?

RamAlx
  • 6,976
  • 23
  • 58
  • 106
  • When I try this, it works on the spot: https://codesandbox.io/s/wowqj99m28 Are you sure your SCSS is compiled to CSS properly? –  Jun 12 '18 at 20:59
  • No it's not working..i'm beggining to desperate :P – RamAlx Jun 12 '18 at 21:17
  • Can you put your attempt online, live, so we can take a look? –  Jun 12 '18 at 22:25

0 Answers0