React-dates: SingleDatePicker: Can't Customize Input's font-weight

Created on 29 May 2017  路  2Comments  路  Source: airbnb/react-dates

As with #533, #534, #535, I'm trying to use the SingleDatePicker component in a form along side some other custom inputs. Those inputs set their text at a different font-weight, so I'd like to customize the font-weight of the SingleDatePicker input to match visually. There doesn't seem to be a sass variable for this, so I'm doing it with a CSS override at the moment. Would love it if there were something cleaner.

Most helpful comment

29 May 2017, like a year ago, any updates on this one?

All 2 comments

Same issue with [email protected] as well, input has predefined fontWeight: 200 style, https://github.com/airbnb/react-dates/blob/master/src/components/DateInput.jsx#L303, and there is no obvious way for me to change it.

This results in hacking font-weight via querying DateInput by ID in DOM after SingleDatePicker wrapper component did mount.

29 May 2017, like a year ago, any updates on this one?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maciej-w picture maciej-w  路  3Comments

augnustin picture augnustin  路  3Comments

AsasinCree picture AsasinCree  路  3Comments

yokomizor picture yokomizor  路  3Comments

ekohanyi picture ekohanyi  路  3Comments