material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Dense padding prop does not apply to column headers

Open jakeleventhal opened this issue 7 years ago • 4 comments

Describe the bug If you use the dense option, it does not affect the header row

To Reproduce Steps to reproduce the behavior:

  1. Create a table with dense props

Expected behavior The header row should be dense too

Screenshots Screen Shot 2019-07-02 at 6 46 35 PM

jakeleventhal avatar Jul 02 '19 22:07 jakeleventhal

@gianlucamateo

jakeleventhal avatar Jul 02 '19 22:07 jakeleventhal

I see how this would be useful, but the main reason behind the option was that some things about row heights can't be changed with styling, such as the size of the iconbuttons used for tree expansion or actions.

To my knowledge, the same does not apply to the headers, and I suggest solving the issue with custom styling.

gianlucamateo avatar Jul 03 '19 11:07 gianlucamateo

I get where you're coming from - but I really disagree. I think the biggest use case is for just styling purposes and wanting data to be presented in a more compact/condensed way. After all, tables are mostly just showing text data.

Having the header be a different style from the rest of the table just stands out and looks out of place.

What are your thoughts?

jakeleventhal avatar Jul 10 '19 05:07 jakeleventhal

I guess it makes sense. I am, however, not going to be able to invest time into adjusting this. Maybe you could look at it?

gianlucamateo avatar Jul 10 '19 12:07 gianlucamateo