React-date-picker: Unable to get the /'s in the date display to line up

Created on 7 Nov 2017  路  3Comments  路  Source: wojtekmaj/react-date-picker

image
Reproduced in "react-date-picker": "^6.2.0", and 6.2.2

Is it currently possible to target the "/" between the dd/mm/yyyy with css? I am not sure what could be causing this, I had tried toggling all styles around the date picker. The closets thing I had was disabling display: flex on react-date-picker__button__input which works at first but as soon as you click on it, the spacing all collapses and only shows one character each (See below gif).

2017-11-06_18-02-08

I could see having something to target the / helpful to anyone who wants to change the style of how the /'s look. Could have multi colored lines, or change the colors based on some other input (making them red to show users they need to select something)
Any help would be appreciated, thanks!

bug enhancement

All 3 comments

My current workaround has been to add alittle bit of padding top to the input (not quite perfect, but will do)

.react-date-picker__button__input {
  padding-top: 6px;
}

image

Hey @DaveyEdwards, that's a fair point - I'll add .react-date-picker__button__divider in the next release!

Thank you for the report! The issue has been fixed in v6.2.4, as well as the alignment issue. It should be well aligned out of the box.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vanmanh49 picture vanmanh49  路  4Comments

jameskraus picture jameskraus  路  4Comments

wojtekmaj picture wojtekmaj  路  7Comments

adityatandon007 picture adityatandon007  路  4Comments

JMS-1 picture JMS-1  路  7Comments