Times to be visible
Times not visible
import 'react-datepicker/dist/react-datepicker.css';
//...
<DatePicker showTimeSelect />

i meet the same issue.
i modify it by follow:
find the file react-datepicker.css
.react-datepicker__time-box {
width: 120px;
overflow-x: hidden;
margin: 0 auto;
text-align: center;
margin-left: -58px;
}
I use an overwrite:
.react-datepicker__time-list {
padding: 0;
}

Depending on the project you may need to add more specificity to the selector.
+1 also experiencing this issue
I'm having this issue as well. Good call on the override @christiantakle!
Same here, it happens because the datepicker actually requires some kind of reset.css and it's included in styles on the examples page, but is not mentioned in docs at all. The style should either be included in the selector or there should be additional line in docs
@beshanoe I'm looking at the examples page (aka the main site) and see no reference to styles or reset.css. Can you be more specific?
@davegravy sure, here https://github.com/Hacker0x01/react-datepicker/blob/e052b4ad349c92670b63c0a19d69a6a5f1fb6396/docs-site/style.css#L727 starting from line 645 there's kinda reset styles, and specifically on 727 padding: 0 is what makes examples work. You can see it when inspect as well
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
I use an overwrite:
Depending on the project you may need to add more specificity to the selector.