question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cursor:pointer should be used for dropdown and hover on options

See original GitHub issue

Checkout the react-select demo here : https://react-select.com/home

Notice, that hovering on the dropdown arrow, does not change the cursor. Also, notice that hovering on the dropdown options, does not change the cursor.

Expected: cursor:pointer should be used for the above two scenarios.

Please see the demo from another popular plugin - https://select2.org/getting-started/basic-usage. Notice, that the dropdown arrow as well as options use mouse icon pointer.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
binhxncommented, Jan 15, 2020

@nitinsurana You can customize it through their styles prop like so:

// selectorStyles object
const customStyles = {
  option: (styles, state) => ({
    ...styles,
    cursor: 'pointer',
  }),
  control: (styles) => ({
    ...styles,
    cursor: 'pointer',
  }),

// Select component
<Select
  styles={customStyles}
  options={...}
/>
4reactions
nitinsuranacommented, Jan 16, 2020

@binhxn Thanks. I ended up using a similar solution then. But it’ll be great to have it in the plugin itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change cursor over <option> tags? - html - Stack Overflow
I just tried every version of select|option[:hover] { cursor: pointer } including some using * and nothing changed the way my pointer rendered....
Read more >
cursor - CSS: Cascading Style Sheets - MDN Web Docs
The cursor CSS property sets the mouse cursor, if any, to show when the mouse pointer is over an element.
Read more >
How to Change Cursor on Hover in CSS - W3docs
Hover over the list items to see how the default cursor changes into a pointer: List item 1 with the default cursor. List...
Read more >
How to Change the Cursor into a Hand Pointer on Hover ...
Answer: Use the CSS cursor Property. You can simply use the CSS cursor property with the value pointer to change the cursor into...
Read more >
<option> does not support CSS cursor values (cursor: pointer)
Summary: <option> does not support CSS cursor values (cursor: pointer) (was: cursor :pointer CSS on select Option hover is not working for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found