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.

Remove hand-cursor on links displayed as button

See original GitHub issue

As explained quite clearly on this article, hand (pointer) cursor should be limited to links on text and images.

The rule seems to be: for a button, there is no need to use a pointer cursor. for a text link, a pointer cursor should be used.

Currently, the underlying element is not altered: if you render a classic link as a button (<a> with class="btn") the cursor is still a hand cursor. For example, in the documentation for the first button. For this button only, the cursor is a pointer.

Also note that the same is true for button elements rendered as links (<button> with class="btn-link"). The link should be rendered with a hand cursor. See this example on the doc.

A naïve implementation could be:

.btn-link { cursor: pointer; }
a.btn { cursor: default; }

If the solution is as simple as this, I can submit a PR.

Regards,

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:22 (17 by maintainers)

github_iconTop GitHub Comments

6reactions
patrickhlaukecommented, Nov 23, 2017

for what it’s worth, i’m actually now leaning (personally) towards just adding cursor:pointer to links and buttons, rather than trying to special-case “only link-like links/buttons that somehow act as links should use that, all others get the default”. as much as i sympathise with the original “buttons shouldn’t use the pointer cursor” article, i really don’t think users are so utterly confused by the practice…

6reactions
EugenMayercommented, Nov 2, 2017

/ranton What a horrible design decision based on an article comparing desktop applications with unified styling by the OS with the browser, having a different visual display of buttons on every single page.

Beside that, historically browser come from displaying content, not from being the “application windows” they are going to be used more and more - while desktop applications have exactly the inverse history, they are used as applications only and beside some widgets, they only do exactly that.

The hand cursor was one of this indicators in the web, even for experts, to see if, out of all the thousand items, one item is interactive or not, since you simply cannot guess in the web. Buttons look flat, non flat whatever, colored, with background, transparent and beside ALL that, placed on every possible place possible.

You find call to action buttons on every position in the coordinate system when you are looking at the browser. The article then compares that with a Desktop App-Menu which is placed on the top every single time and does look the same for every single application.

Its repeating again and again, some UX designer forces to invent something new, so muuuch simpler and sleeker and “teaching” other “people in the world” that this will be simpler. Paddling back in the end, since it was nothing more then then a made up invention…much rather just a change for the sake of a change… to “see any kind of progress” without having any kind of useful addition at all.

All that fits perfectly for this PR, all it does is harm without adding any more convenience, without removing any overhead or bloat or being faster.

At least people who really care like http://www.material-ui.com/#/components/flat-button do not just jump on a bangwagon of “i have something new here” and “new is better, always”. /rantoff

And yes of course, we added it back again, wont be a surprise for a lot more people using bootstrap for web-applications.

Read more comments on GitHub >

github_iconTop Results From Across the Web

css - Is it possible to remove the hand cursor that appears ...
To Remove Hand Cursor ... <button> <a ... pointer] then you can access to the hand like cursor that appears when you hover...
Read more >
Hide the cursor in a webpage using CSS and JavaScript
First, select the element where cursor element need to hide. · Add CSS style cursor:none to the a class. · Add the class...
Read more >
How do i remove hand (pointer) cursor from anchor (a) link tag ...
I have a requirement, in which I want to use anchor tag (<a>) of HTML but without pointer cursor, as I don't want...
Read more >
How to remove hand pointer cursor from button rollover
Solved: Hello I'm looking for a way to remove the hand cursor that appears when you roll over a button I'm working in...
Read more >
Remove the hand cursor on buttons - Support - Themeco Forum
Hi there i want to use the button element for aesthetics but i do not need it ... a link to the button...
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