React-datepicker: Time padding is incorrect

Created on 9 Jun 2018  路  6Comments  路  Source: Hacker0x01/react-datepicker

Expected behavior

image
It should look like this

Actual behavior

image
But it looks like this

Steps to reprodcue

So i looked in to it and their is no padding:0 in it so he takes the default ul.

wontfix

Most helpful comment

A temporary fix is to add this CSS:

ul.react-datepicker__time-list {
    padding: 0;
}

All 6 comments

I have the same issue.

A temporary fix is to add this CSS:

ul.react-datepicker__time-list {
    padding: 0;
}

Trying to pin this down a bit more, but I only had this issue when I moved from using materialize CSS to bootstrap 4. Perhaps materialize was masking this issue by setting padding 0 on ul.

after made the ul padding to 0. some browser works, but in a screen it is showing
screen shot 2018-06-21 at 06 52 10

It seems to be the ul.react-datepicker__time-list element, which inherits from the base 'user agent stylesheet' (in chrome at least) with this class:
ul, menu, dir { padding-inline-start:40px; }
Guess we need to reset this to 0px, as mentioned above...

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.

Was this page helpful?
0 / 5 - 0 ratings