Disabling the Cursor Hand for Admin Grid in Laravel

Stefan Bogdanescu
Founder & Senior Architect · 10 October 2026

When creating admin grids using Laravel, you might encounter an issue where the cursor changes to a hand icon when hovering over rows, even if there are no clickable links attached. This can be misleading for users and may create confusion within your application.

Understanding the Problem: CSS Styling

The default styling of many admin grid packages, such as DataTables or YajraBox, includes cursor styles that are not easily removable without digging into the underlying CSS. The problem lies in the fact that these packages use various CSS selectors to style table rows and cells with hover effects that include the cursor: pointer property.

Disabling the Cursor Hand Effect

To disable the cursor hand effect for your admin grid, you’ll need to override the default CSS styles applied by the package. Here’s a step-by-step guide on how to achieve this:

  1. First, locate the CSS file responsible for the table styling in your project. If you’re using YajraBox, the file is usually node_modules/yajrabox/css/yajrabox.css. For DataTables, it may be located within your theme or a separate plugin file.

  2. Copy the contents of this file to a new CSS file in your project’s root directory (e.g., custom-grid.css) to avoid modifying the original package files directly.

  3. In the copied file, search for any selectors related to table rows (tr) and cells (td). Look for properties like cursor: pointer; or cursor: hand;.

  4. Comment out or remove these cursor-related properties from the selected styles. For example, if you find a rule set targeting .yajrabox-table tbody tr:hover, it would look something like this:

    .yajrabox-table tbody tr:hover {
        /* Remove or comment out the following line */
        cursor: pointer;
    }
    
  5. Save your changes, and then include the new custom-grid.css file in your admin layout using the <link> tag within the <head> section of your HTML:

    <link rel="stylesheet" href="{{ asset('custom-grid.css') }}">
    

Best Practices for Disabling Cursor Effects

It’s essential to ensure that users can easily identify interactive elements within your admin grid. If you decide to disable the cursor hand effect, consider using other visual cues or tooltips to indicate where interaction is possible.

For instance, you could use a subtle hover color change or an informative tooltip with additional context about what clicking on a row will do. This approach ensures that users remain informed without relying solely on the cursor shape.

Conclusion

Disabling the cursor hand effect for your admin grid in Laravel requires careful modification of CSS styles applied by third-party packages. By following our step-by-step guide and creating a custom CSS file, you can effectively override the default cursor behavior and enhance the user experience within your application’s admin panel.

Remember that proper communication with users is crucial when removing familiar visual cues like the cursor hand icon. Be sure to provide alternative indicators or tooltips that clearly convey the purpose of any interactive elements in your grid.

For more advanced customizations and styling options for Laravel admin panels, I recommend checking out our comprehensive guide on Laravel Admin Panel Development. This resource provides a wealth of information on creating powerful and visually appealing admin interfaces using the popular framework.

Our network