Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Change TableRow's cursor to pointer when an onClick attribute is added #18174

Open
1 task done
adamalston opened this issue Nov 28, 2024 · 1 comment
Open
1 task done

Comments

@adamalston
Copy link
Contributor

The problem

A clickable row in a table would be easier to discern if it's cursor style property was changed to pointer.

The solution

Change TableRows cursor to pointer when an onClick attribute is added.

The workaround in the UIs I'm working on is to create a TableRow styled component with cursor set to pointer and use it in place of TableRow when the row is clickable.

const ClickableRow = styled(TableRow)`
  cursor: pointer;
`;

Examples

https://stackblitz.com/edit/github-t8xdvo?file=src%2FApp.tsx shows the problem. When hovering over a row, the cursor is set to default.

Application/PAL

DataPower

Business priority

None

Available extra resources

No response

Code of Conduct

Copy link
Contributor

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage
Development

No branches or pull requests

1 participant