Closed margarizaldi closed 1 year ago
I don't think removing the header completely is the right way to go, it creates a11y issues.
Can you try it with just a class of sr-only for the thead?
Let me know your review
Thanks. I had to fix the columns widths for when the header was hidden, but works well.
Awesome... I have a new idea while you fixing that, but not sure you agree or not...
What if when the item number is 0, the whole table must not exist at all? so we won't have bodyless table there... I think that will have no problem with accessibility issue since there's nothing literally...
I think the table headers are good for context, but let me think about it a little.
I think the table headers are good for context, but let me think about it a little.
Maybe add another tbody for empty state... Have a great weekend!
I think this would be good to do similar to Filament tables where, there's a single row in the existing body that spans the column count plus the actions column (if they exist) that says something like 'No items' or something like that.
I just don't like the button being there by itself, centered with nothing but a field label all the way over to the left or right. Just my personal opinion though.
What do you think? Is that something you want to work on?
I'm happy to do it myself. :)
Good idea.
I'll try. Thank you.