react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Cannot change cursor when using unstyled

Open Worble opened this issue 1 year ago • 1 comments

First of all, thanks for the library!

When using the unstyled option with classnames, it's not possible to change the mouse pointer due to specificity issues.

Code sandbox: https://codesandbox.io/s/react-select-v5-sandbox-forked-n63kht?file=/example.js

Worble avatar Nov 08 '23 13:11 Worble

  1. I agree that part of the "proper" solution is to ensure that user-defined classNames come last in the list
  2. A very easy workaround is to increase your specificity. Either div.cursor-not-allowed or .cursor-not-allowed.cursor-not-allowed would work in this case
  3. You'll notice that even if you do 2., the problem isn't solved since the wrapper has pointer-events: none on it, no cursor property on the element inside would ever work anyway.

cssinate avatar Jan 09 '24 15:01 cssinate