Skip to content

Conversation

@balajis-qb
Copy link
Collaborator

Problem
This fix is related to a CSS specificity issue in the docsite example "Custom day class name". In that example even though the dayClassName is applied properly, it's not applied in the UI due to CSS Specificity issue.

image

Changes

  • Increased the specificity of the CSS selector to apply the dayClassName style to the day element
  • No functional changes

Screenshots

image

Contribution checklist

  • I have followed the contributing guidelines.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

- Previous `text-success` color style was overridden by the default specificity of the react-datepicker__day class.
- Added a new class to increase the specificity
@balajis-qb balajis-qb force-pushed the docs/fix/css-specificity branch from 8b81961 to 27de959 Compare December 23, 2025 15:48
@balajis-qb balajis-qb merged commit 0db9b43 into main Jan 8, 2026
3 of 4 checks passed
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.

2 participants