Issue
Is there any CSS class or attribute for pointer:cursor in Bootstrap 4 specially for button or link?
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesheet"/>
<button type="button" class="btn btn-success">Sample Button</button>
Solution
As of June 2020, adding role='button' to any HTML tag would add cursor: "pointer" to the element styling.
<span role="button">Non-button element button</span>
Official discussion on this feature - https://github.com/twbs/bootstrap/issues/23709
Documentation link - https://getbootstrap.com/docs/4.5/content/reboot/#pointers-on-buttons
Answered By - Vibhor Dube
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.