You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The accessibility improvements added in #5731 introduce a new CSS class (sr-only) that clash with Tailwind's own sr-only class, causing the class to ignore Tailwind's breakpoints.
To Reproduce
In a project that uses both react-datepicker and Tailwind, create a new component that uses the sr-only with a breakpoint. The sr-only class will always be applied, even when not expected to.
<buttonclassName="sr-only sm:not-sr-only">
Click here
</button>
Expected behavior
The classes in react-datepicker should be scoped to the component's tree and avoid using universal names that might conflict with other tools.
Screenshots
Desktop (please complete the following information):