Skip to content

Conversation

@martijnrusschen
Copy link
Member

@martijnrusschen martijnrusschen commented Dec 1, 2025

Converts internal sizing units from rem to em in the datepicker stylesheets. This allows users to easily inherit font size from parent elements by overriding the root .react-datepicker font-size to 'inherit' or '1em'.

The default appearance remains unchanged since the root element still uses font-size: 0.8rem.

Fixes #624

Converts internal sizing units from rem to em in the datepicker stylesheets.
This allows users to easily inherit font size from parent elements by
overriding the root .react-datepicker font-size to 'inherit' or '1em'.

The default appearance remains unchanged since the root element still
uses font-size: 0.8rem.

Fixes #624
@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.22%. Comparing base (f11433c) to head (4411352).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6076   +/-   ##
=======================================
  Coverage   99.22%   99.22%           
=======================================
  Files          30       30           
  Lines        3612     3612           
  Branches     1547     1551    +4     
=======================================
  Hits         3584     3584           
  Misses         27       27           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to inherit font size

2 participants