AgnosticUI / agnosticui

AgnosticUI is a set of UI primitives that start their lives in clean HTML and CSS. These standards compliant components are then copied to our framework implementations in: React, Vue 3, Angular, and Svelte.
https://agnosticui.com
Apache License 2.0
723 stars 47 forks source link

[Feature Request] Ability to click on header cell to sort by that column in Table component #247

Open thdoan opened 1 year ago

thdoan commented 1 year ago

Describe the bug For the Table component, I wish you would make the entire header cell clickable instead of only the arrow icon for sorting.

To Reproduce Steps to reproduce the behavior:

  1. Go https://www.agnosticui.com/docs/components/table.html
  2. Click on "Name" to sort by that column
  3. See error

Expected behavior I was expecting to be able to sort the column by clicking on the column header, but instead I had to click on that arrow, which has a smaller click zone.

Desktop (please complete the following information):